10% woo-product-coming-soon

Code Review | Woo Product Coming Soon

WordPress plugin Woo Product Coming Soon scored10%from 54 tests.

About plugin

  • Plugin page: woo-product-comin...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Apr 30, 2018
  • Latest release: Jun 5, 2018
  • Number of updates: 5
  • Update frequency: every 7.8 days
  • Top authors: oremtech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /815 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/woo-product-coming-soon/woo-product-coming-soon.php+317
    Non-static method WMAMC_woo_product_coming_soon::WMAMC_woo_product_coming_soon_instance() should not be called statically

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.80ms] Passed 4 tests

This is a short check of server-side resources used by Woo Product Coming Soon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.04 ▼7.63
Dashboard /wp-admin3.31 ▲0.0043.08 ▼14.06
Posts /wp-admin/edit.php3.36 ▲0.0045.16 ▼2.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.16 ▼15.11
Media Library /wp-admin/upload.php3.23 ▲0.0035.58 ▼0.15

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Woo Product Coming Soon: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.62 ▼1.061.64 ▼0.1439.13 ▼5.62
Dashboard /wp-admin2,206 ▲214.88 ▼0.01106.06 ▲6.5840.91 ▼5.76
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0438.90 ▼0.6836.53 ▲0.55
Add New Post /wp-admin/post-new.php1,534 ▲123.27 ▼0.01599.45 ▼86.5059.66 ▲8.06
Media Library /wp-admin/upload.php1,391 ▼04.17 ▲0.0194.06 ▼12.7742.57 ▼4.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: products, stock, custom stock message, product coming soon, woocommerce addon...

woo-product-coming-soon/woo-product-coming-soon.php 85% from 13 tests

The main file in "Woo Product Coming Soon" v. 1.0.0 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 must use dashes instead of underscores, and it must be lowercase
  • Requires at least: Required version must match the one declared in readme.txt ("4.8" instead of "4.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin188 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110727188

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin