79% custom-coming-soon

Code Review | Custom Coming Soon

WordPress plugin Custom Coming Soon scored 79% from 54 tests.

About plugin

  • Plugin page: custom-coming-soon
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2016
  • Latest release: Jul 1, 2019
  • Number of updates: 100
  • Update frequency: every 10.5 days
  • Top authors: SuryaBhan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 6,543 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.32ms] Passed 4 tests

Analyzing server-side resources used by Custom Coming Soon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.13 ▼4.64
Dashboard /wp-admin3.32 ▲0.0144.80 ▼8.32
Posts /wp-admin/edit.php3.37 ▲0.0147.30 ▼1.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.90 ▼10.74
Media Library /wp-admin/upload.php3.24 ▲0.0135.94 ▲5.93
Custom Coming Soon Setting /wp-admin/options-general.php?page=custom-coming-soon3.2739.69

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Custom Coming Soon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲17313.95 ▼0.435.25 ▲3.3740.63 ▼5.66
Dashboard /wp-admin2,210 ▲225.86 ▲0.98106.50 ▼9.0341.94 ▼4.97
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0540.01 ▲2.6134.39 ▲0.81
Add New Post /wp-admin/post-new.php1,550 ▲818.29 ▲0.03595.49 ▼16.5366.32 ▲12.56
Media Library /wp-admin/upload.php1,395 ▲104.19 ▼0.06100.66 ▼5.1544.01 ▼2.57
Custom Coming Soon Setting /wp-admin/options-general.php?page=custom-coming-soon2,0277.74162.0662.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'custom_csn_uninstall' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
Please take inspiration from this readme.txt

custom-coming-soon/custom-coming-soon.php 92% from 13 tests

The main PHP script in "Custom Coming Soon" version 2.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected476 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP37047402
CSS116074

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
themes/StaticBackground/images/background.png94.31KB37.37KB▼ 60.38%