90% up-sell-product-display-for-woocommerce

Code Review | Up Sell Product Display For WooCommerce

WordPress plugin Up Sell Product Display For WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: up-sell-product-d...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 1, 2016
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: codextent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,174 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Up Sell Product Display For WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.12 ▼13.63
Dashboard /wp-admin3.32 ▼0.0348.24 ▼15.87
Posts /wp-admin/edit.php3.37 ▲0.0151.46 ▲1.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.63 ▲6.12
Media Library /wp-admin/upload.php3.24 ▲0.0137.07 ▼0.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_codextent-woo-up-sells

Browser metrics Passed 4 tests

A check of browser resources used by Up Sell Product Display For WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.34 ▼0.212.04 ▼0.2941.18 ▼7.33
Dashboard /wp-admin2,195 ▲185.62 ▼0.1188.18 ▼9.2837.75 ▼8.70
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0039.02 ▼0.0736.07 ▲0.65
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.52631.89 ▼61.1561.63 ▲3.65
Media Library /wp-admin/upload.php1,403 ▼04.27 ▲0.0597.68 ▼8.2446.18 ▼3.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_codextent-woo-up-sells
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: woocommerce up sell product, woocommerce, woocommerce plugin, woocommerce up sell, woocommerce up-sell...

up-sell-product-display-for-woocommerce/up-sell-product-display-for-woocommerce.php Passed 13 tests

The principal PHP file in "Up Sell Product Display For WooCommerce" v. 1.0 is loaded by WordPress automatically on each request
64 characters long description:
Woocommerce Up Sell product display using Widgets and Shortcode.

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 plugin326 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP39760240
CSS24185
HTML1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.50
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods444.44%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 files were detected