89% woo-advanced-sku-reports

Code Review | WooCommerce Advanced SKU Reports

WordPress plugin WooCommerce Advanced SKU Reports scored89%from 54 tests.

About plugin

  • Plugin page: woo-advanced-sku-...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Mar 20, 2018
  • Latest release: Mar 20, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: websavers (100%)Otto42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,221 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WooCommerce Advanced SKU Reports
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0250.37 ▲10.59
Dashboard /wp-admin3.33 ▲0.0248.75 ▼1.88
Posts /wp-admin/edit.php3.38 ▲0.0250.54 ▼0.38
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.05 ▼16.36
Media Library /wp-admin/upload.php3.25 ▲0.0236.50 ▲1.48

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Advanced SKU Reports
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.63 ▲0.271.77 ▼0.2838.12 ▼3.88
Dashboard /wp-admin2,192 ▲185.55 ▼0.0694.74 ▼4.0241.51 ▲0.47
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0139.07 ▼0.6738.27 ▼1.77
Add New Post /wp-admin/post-new.php1,526 ▼222.99 ▼0.10679.62 ▼9.0261.29 ▲15.55
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.01101.56 ▼13.2743.97 ▼3.45

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: report, inventory, woocommerce, sku, reports

woo-advanced-sku-reports/woocommerce-advanced-sku-reports.php 85% from 13 tests

This is the main PHP file of "WooCommerce Advanced SKU Reports" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-advanced-sku-reports.php" instead of "woocommerce-advanced-sku-reports.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12055104

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin