89% coming-soon-for-products

Code Review | Coming Soon For Products

WordPress plugin Coming Soon For Products scored89%from 54 tests.

About plugin

  • Plugin page: coming-soon-for-p...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 30, 2022
  • Latest release: Jan 9, 2023
  • Number of updates: 5
  • Update frequency: every 2.2 days
  • Top authors: wpteamindianic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Coming Soon For Products
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0332.74 ▼4.47
Dashboard /wp-admin3.33 ▲0.0240.14 ▼9.47
Posts /wp-admin/edit.php3.38 ▲0.0247.69 ▼1.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0275.82 ▼17.02
Media Library /wp-admin/upload.php3.25 ▲0.0236.47 ▲4.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Coming Soon For Products
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.774.38 ▲2.6736.86 ▼4.39
Dashboard /wp-admin2,209 ▲275.89 ▼0.01113.75 ▲11.0041.70 ▼3.52
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0236.69 ▼1.4534.11 ▼3.12
Add New Post /wp-admin/post-new.php1,514 ▼1417.62 ▼0.63655.98 ▲23.7247.10 ▼4.70
Media Library /wp-admin/upload.php1,382 ▼34.16 ▼0.1396.12 ▼6.9940.72 ▼2.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
Please take inspiration from this readme.txt

coming-soon-for-products/wc_coming_soon.php 92% from 13 tests

"Coming Soon For Products" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("coming-soon-for-products.php" instead of "wc_coming_soon.php")

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
There were no executable files found in this plugin117 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2106880
Markdown111037

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin