90% wpc-force-sells

Code Review | WPC Force Sells for WooCommerce

WordPress plugin WPC Force Sells for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-force-sells
  • Plugin version: 6.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 29, 2019
  • Latest release: Oct 19, 2023
  • Number of updates: 83
  • Update frequency: every 18.2 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /24,748 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by WPC Force Sells for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.79 ▼1.66
Dashboard /wp-admin3.33 ▼0.0247.66 ▼7.94
Posts /wp-admin/edit.php3.44 ▲0.0844.03 ▼1.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.36 ▼8.77
Media Library /wp-admin/upload.php3.25 ▲0.0234.48 ▼0.18
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2231.23
About /wp-admin/admin.php?page=wpclever3.2228.20

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WPC Force Sells for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14514.33 ▼0.041.90 ▲0.2744.00 ▲2.69
Dashboard /wp-admin2,257 ▲805.80 ▲0.1494.70 ▲8.4189.80 ▲47.77
Posts /wp-admin/edit.php2,181 ▲812.01 ▼0.0241.09 ▲3.9935.69 ▲3.14
Add New Post /wp-admin/post-new.php1,600 ▲7422.90 ▼0.68657.30 ▼33.6560.76 ▼2.85
Media Library /wp-admin/upload.php1,471 ▲714.17 ▼0.0496.96 ▼11.1770.06 ▲20.96
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7442.1335.4253.61
About /wp-admin/admin.php?page=wpclever1,3962.1431.2633.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 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
5 plugin tags: force, wpc, woo, woocommerce, sells

wpc-force-sells/wpc-force-sells.php Passed 13 tests

The primary PHP file in "WPC Force Sells for WooCommerce" version 6.1.1 is used by WordPress to initiate all plugin functionality
86 characters long description:
Create a deal that combines various related products and put them for sale altogether.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin4,251 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP5351692,078
CSS53151491,487
JavaScript413036657
SVG10029

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity88.00
▷ Minimum class complexity1.00
▷ Maximum class complexity304.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods81
▷ Static methods56.17%
▷ Public methods81100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants10
▷ Global constants10100.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 were not PNG files found in your plugin