89% cool-coming-soon

Code Review | Cool Coming Soon

WordPress plugin Cool Coming Soon scored 89% from 54 tests.

About plugin

  • Plugin page: cool-coming-soon
  • Plugin version: 2.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 9, 2016
  • Latest release: Aug 22, 2023
  • Number of updates: 19
  • Update frequency: every 132.0 days
  • Top authors: Atlas_Gondal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,700 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Cool Coming Soon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.75 ▼0.39
Dashboard /wp-admin3.32 ▲0.0145.85 ▼0.60
Posts /wp-admin/edit.php3.37 ▲0.0143.09 ▼5.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.74 ▼5.48
Media Library /wp-admin/upload.php3.24 ▲0.0134.51 ▲1.27
Cool Coming Soon /wp-admin/options-general.php?page=cool-coming-soon-settings3.3635.84

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
cool_coming_soon_data
db_upgraded
theysaidso_admin_options
cool_coming_soon_display
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Cool Coming Soon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.74 ▼0.641.84 ▼0.1644.17 ▲3.80
Dashboard /wp-admin2,210 ▲224.87 ▼0.98104.12 ▼12.9338.84 ▼10.03
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0235.76 ▼5.5332.53 ▼4.03
Add New Post /wp-admin/post-new.php1,536 ▼023.29 ▲0.12659.58 ▼12.2955.58 ▼0.63
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.0896.85 ▼16.9540.48 ▼1.73
Cool Coming Soon /wp-admin/options-general.php?page=cool-coming-soon-settings1,7917.14119.39111.83

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

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

This is the main PHP file of "Cool Coming Soon" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin464 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39610397
JavaScript2191367

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/assets/img/logo.png29.26KB10.02KB▼ 65.75%