99% wc-products-coming-soon

Code Review | Products Coming Soon

WordPress plugin Products Coming Soon scored 99% from 54 tests.

About plugin

  • Plugin page: wc-products-comin...
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 5.8.1
  • First release: Jul 7, 2020
  • Latest release: Aug 23, 2020
  • Number of updates: 3
  • Update frequency: every 17.7 days
  • Top authors: dipakbbsr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 244 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼172.79ms] Passed 4 tests

An overview of server-side resources used by Products Coming Soon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1837.91 ▲14.15
Dashboard /wp-admin3.12 ▲0.0757.83 ▲3.35
Posts /wp-admin/edit.php3.23 ▲0.1353.75 ▲3.69
Add New Post /wp-admin/post-new.php5.49 ▲0.0699.69 ▼692.10
Media Library /wp-admin/upload.php3.07 ▲0.0636.16 ▼6.08

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Products Coming Soon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,816 ▲24416.39 ▲0.7515.26 ▲4.6350.58 ▲3.57
Dashboard /wp-admin2,971 ▲345.89 ▼0.34147.66 ▼7.62110.74 ▼2.10
Posts /wp-admin/edit.php2,743 ▲72.71 ▼0.0071.38 ▲2.7588.91 ▼0.63
Add New Post /wp-admin/post-new.php1,619 ▼5321.50 ▲2.80299.22 ▼107.83108.38 ▼3.36
Media Library /wp-admin/upload.php1,811 ▲45.04 ▲0.01152.29 ▼7.10126.71 ▼1.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: products, sales, woocommerce, coming soon, e-commerce

wc-products-coming-soon/wc-products-coming-soon.php 85% from 13 tests

The main PHP file in "Products Coming Soon" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin306 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7104385284
CSS293216
JavaScript2206

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.20
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected