84% woocommerce-product-wise-orders-report

Code Review | Woocommerce Product Wise Orders Report

WordPress plugin Woocommerce Product Wise Orders Report scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-produ...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2015
  • Latest release: Apr 3, 2015
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: madforstrength (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.16ms] Passed 4 tests

Server-side resources used by Woocommerce Product Wise Orders Report
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.50 ▲0.77
Dashboard /wp-admin3.34 ▲0.0347.65 ▼8.18
Posts /wp-admin/edit.php3.39 ▲0.0347.52 ▼0.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.50 ▼4.91
Media Library /wp-admin/upload.php3.26 ▲0.0336.42 ▲4.06

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Woocommerce Product Wise Orders Report: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4514.81 ▲0.161.74 ▼0.0742.36 ▲0.36
Dashboard /wp-admin2,222 ▲404.95 ▼0.95102.87 ▼0.1739.10 ▼4.99
Posts /wp-admin/edit.php2,105 ▲371.99 ▼0.0340.71 ▲3.1635.40 ▼0.92
Add New Post /wp-admin/post-new.php1,527 ▲1317.66 ▼0.06604.22 ▼44.3762.09 ▲11.62
Media Library /wp-admin/upload.php1,404 ▲164.20 ▼0.0795.49 ▼17.1441.51 ▼1.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-product-wise-orders-report/woocommerce-product-wise-orders-report.php:10

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("N/A")
You can take inspiration from this readme.txt

woocommerce-product-wise-orders-report/woocommerce-product-wise-orders-report.php Passed 13 tests

The main PHP script in "Woocommerce Product Wise Orders Report" version 1.0 is automatically included on every request by WordPress
36 characters long description:
Shows all orders of Selected product

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected178 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1814178

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected