89% coming-soon-express

Code Review | Coming Soon Express

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

About plugin

  • Plugin page: coming-soon-express
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.1
  • WordPress version: 5.8.1
  • First release: Apr 12, 2018
  • Latest release: Sep 10, 2021
  • Number of updates: 14
  • Update frequency: every 89.0 days
  • Top authors: alexmustin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,570 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼148.45ms] Passed 4 tests

A check of server-side resources used by Coming Soon Express
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1431.35 ▲8.60
Dashboard /wp-admin3.08 ▲0.0235.32 ▼8.85
Posts /wp-admin/edit.php3.13 ▲0.0242.54 ▼2.61
Add New Post /wp-admin/post-new.php5.45 ▲0.0290.84 ▼577.62
Media Library /wp-admin/upload.php3.02 ▲0.0132.83 ▼4.71

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 5 new options
New WordPress options
csx_bg_image
csx_show_bigtitle
csx_show_description
csx_show_bg_image
csx_show_headline

Browser metrics Passed 4 tests

An overview of browser requirements for Coming Soon Express
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲11916.01 ▲0.038.22 ▲0.3651.96 ▲2.97
Dashboard /wp-admin2,976 ▲455.92 ▼0.03134.93 ▼14.09109.57 ▼2.50
Posts /wp-admin/edit.php2,745 ▲62.82 ▲0.0063.21 ▲0.3993.67 ▲2.37
Add New Post /wp-admin/post-new.php1,506 ▲618.72 ▲0.16383.57 ▲17.55107.35 ▲0.83
Media Library /wp-admin/upload.php1,813 ▲65.01 ▲0.01151.68 ▼10.08128.23 ▲11.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 5 options in the database
    • csx_show_description
    • csx_show_bigtitle
    • csx_show_bg_image
    • csx_show_headline
    • csx_bg_image

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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 to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

coming-soon-express/coming-soon-express.php 85% from 13 tests

The main file in "Coming Soon Express" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,136 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP84523851,351
CSS68058519
JavaScript36340220
Markdown124046

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods4197.62%
▷ Protected methods00.00%
▷ Private methods12.38%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.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 are no PNG files in this plugin