72% jf-simple-coming-soon

Code Review | JF Simple Coming Soon

WordPress plugin JF Simple Coming Soon scored72%from 54 tests.

About plugin

  • Plugin page: jf-simple-coming-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2013
  • Latest release: Mar 23, 2014
  • Number of updates: 4
  • Update frequency: every 67.5 days
  • Top authors: jeromefitzpatrick (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /9,300 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.27ms] Passed 4 tests

A check of server-side resources used by JF Simple Coming Soon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0245.87 ▲0.34
Dashboard /wp-admin3.34 ▲0.0455.86 ▼0.24
Posts /wp-admin/edit.php3.40 ▲0.0454.21 ▼11.05
Add New Post /wp-admin/post-new.php5.93 ▲0.04133.77 ▲26.15
Media Library /wp-admin/upload.php3.27 ▲0.0438.93 ▼2.14
Simple Coming Soon /wp-admin/options-general.php?page=jf-simple-coming-soon3.2634.10

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 15 new options
New WordPress options
widget_recent-posts
jf_scs_topmargin_field
jf_scs_bgcolor_field
widget_recent-comments
widget_theysaidso_widget
jf_scs_enable
db_upgraded
can_compress_scripts
theysaidso_admin_options
jf_scs_use_custom_css
...

Browser metrics Passed 4 tests

Checking browser requirements for JF Simple Coming Soon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.28 ▼0.312.06 ▲0.0949.08 ▲1.58
Dashboard /wp-admin2,196 ▲165.57 ▼0.0993.69 ▼21.8040.99 ▼12.39
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0541.33 ▼7.8037.72 ▼7.92
Add New Post /wp-admin/post-new.php1,529 ▲123.18 ▼0.03704.63 ▼18.9758.51 ▼18.76
Media Library /wp-admin/upload.php1,404 ▲74.20 ▼0.01117.79 ▲3.6059.04 ▼2.59
Simple Coming Soon /wp-admin/options-general.php?page=jf-simple-coming-soon1,8368.14191.5372.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 15 options
    • jf_scs_use_custom_css
    • jf_scs_delete_options
    • theysaidso_admin_options
    • jf_scs_title_field
    • jf_scs_topmargin_field
    • jf_scs_enable
    • can_compress_scripts
    • jf_scs_custom_css_field
    • jf_scs_bgcolor_field
    • jf_scs_textcolor_field
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=jf-simple-coming-soon
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=jf-simple-coming-soon
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/jf-simple-coming-soon/views/replacement-template.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/jf-simple-coming-soon/views/admin.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=jf-simple-coming-soon
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'msie')" "TypeError: Cannot read properties of undefined (reading 'msie')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/jf-simple-coming-soon/js/admin.js?ver=1.0.0:25:18)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=jf-simple-coming-soon
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (Options page) image missing
You can look at the official readme.txt

jf-simple-coming-soon/jf-simple-coming-soon.php 85% from 13 tests

The entry point to "JF Simple Coming Soon" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin324 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP671223274
JavaScript46240
CSS11110

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods525.00%
▷ Public methods1890.00%
▷ Protected methods15.00%
▷ Private methods15.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png29.43KB15.04KB▼ 48.91%