84% coming-soon-for-genesis

Code Review | Genesis Coming Soon

WordPress plugin Genesis Coming Soon scored84%from 54 tests.

About plugin

  • Plugin page: coming-soon-for-g...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.8
  • WordPress version: 6.3.1
  • First release: Nov 2, 2016
  • Latest release: May 31, 2017
  • Number of updates: 32
  • Update frequency: every 7.3 days
  • Top authors: josemanuelsh (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,315 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.81ms] Passed 4 tests

A check of server-side resources used by Genesis Coming Soon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0048.73 ▲7.79
Dashboard /wp-admin3.31 ▲0.0055.76 ▲2.27
Posts /wp-admin/edit.php3.36 ▲0.0050.11 ▼0.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.65 ▲1.17
Media Library /wp-admin/upload.php3.23 ▲0.0037.23 ▲0.36

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Coming Soon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.45 ▲0.211.87 ▲0.0440.13 ▼3.45
Dashboard /wp-admin2,209 ▲185.84 ▲0.92100.56 ▼9.0240.81 ▼3.82
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0536.87 ▼2.8936.34 ▼1.82
Add New Post /wp-admin/post-new.php1,514 ▼2817.59 ▼0.38660.39 ▲47.0960.38 ▲6.54
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0595.91 ▼9.9343.59 ▲1.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/coming-soon-for-genesis/plugin.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coming-soon-for-genesis/inc/front.php:394
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Admin_Boxes' not found in wp-content/plugins/coming-soon-for-genesis/inc/admin.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
Please take inspiration from this readme.txt

coming-soon-for-genesis/plugin.php 92% from 13 tests

The main PHP file in "Genesis Coming Soon" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("coming-soon-for-genesis.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,111 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4270105867
CSS212027216
JavaScript1441828

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity42.00
▷ Minimum class complexity4.00
▷ Maximum class complexity80.00
Average method complexity5.56
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1583.33%
▷ Protected methods316.67%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin