83% c4d-woo-boost-sales

Code Review | C4D Woo Boost Sales - Set up Up-Sells & Cross-Sells

WordPress plugin C4D Woo Boost Sales - Set up Up-Sells & Cross-Sells scored83%from 54 tests.

About plugin

  • Plugin page: c4d-woo-boost-sales
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 28, 2019
  • Latest release: Sep 25, 2019
  • Number of updates: 16
  • Update frequency: every 6.0 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /820 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.01MB] [CPU: ▼10.16ms] Passed 4 tests

A check of server-side resources used by C4D Woo Boost Sales - Set up Up-Sells & Cross-Sells
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.38 ▼7.17
Dashboard /wp-admin3.31 ▼0.0447.79 ▼17.64
Posts /wp-admin/edit.php3.36 ▲0.0054.48 ▲1.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.96 ▼15.19
Media Library /wp-admin/upload.php3.23 ▲0.0037.97 ▼0.62

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for C4D Woo Boost Sales - Set up Up-Sells & Cross-Sells
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.80 ▲0.431.99 ▼0.3046.07 ▼2.54
Dashboard /wp-admin2,206 ▲215.91 ▲0.08111.41 ▼2.7040.12 ▼5.73
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0144.89 ▲6.3433.95 ▲0.01
Add New Post /wp-admin/post-new.php1,519 ▼923.35 ▲0.13643.22 ▼43.9458.68 ▲7.91
Media Library /wp-admin/upload.php1,385 ▲34.13 ▼0.07110.56 ▲4.0748.11 ▲1.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-boost-sales/includes/category.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-boost-sales/includes/cart.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-boost-sales/includes/product-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-boost-sales/includes/default.php:2

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (17 tag instead of maximum 10)
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in c4d-woo-boost-sales/assets to your readme.txt
The official readme.txt is a good inspiration

c4d-woo-boost-sales/c4d-woo-boost-sales.php 92% from 13 tests

The entry point to "C4D Woo Boost Sales - Set up Up-Sells & Cross-Sells" version 1.0.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,407 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP6122381,046
Sass200186
PO File15064131
JavaScript41042
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin