94% woo-sales-report-for-wp-lister

Code Review | Sales Report for WooCommerce & WP-Lister

WordPress plugin Sales Report for WooCommerce & WP-Lister scored 94% from 54 tests.

About plugin

  • Plugin page: woo-sales-report-...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 5.9.2
  • First release: Jan 22, 2019
  • Latest release: Jul 8, 2020
  • Number of updates: 15
  • Update frequency: every 35.6 days
  • Top authors: zorem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 641 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼298.45ms] Passed 4 tests

This is a short check of server-side resources used by Sales Report for WooCommerce & WP-Lister
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.50 ▲1.25
Dashboard /wp-admin3.42 ▲0.0132.31 ▼0.98
Posts /wp-admin/edit.php3.65 ▲0.0136.93 ▼2.86
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.51 ▼1,191.19
Media Library /wp-admin/upload.php3.30 ▲0.0124.71 ▲1.89

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Sales Report for WooCommerce & WP-Lister: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.01 ▲0.386.00 ▼0.452.45 ▼0.34
Dashboard /wp-admin2,892 ▲316.17 ▲0.01119.24 ▼15.15157.07 ▼1.47
Posts /wp-admin/edit.php2,688 ▼63.37 ▲0.0163.73 ▲1.24139.66 ▼5.53
Add New Post /wp-admin/post-new.php1,711 ▲5021.11 ▲4.98410.30 ▲9.28155.60 ▼3.51
Media Library /wp-admin/upload.php1,701 ▲65.46 ▼0.04145.49 ▲5.50190.01 ▲5.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Admin_Report' not found in wp-content/plugins/woo-sales-report-for-wp-lister/classes/class-wc-report-sales-by-channel.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes: You can take inspiration from this readme.txt

woo-sales-report-for-wp-lister/woo-sales-report-for-wp-lister.php 92% from 13 tests

The main file in "Sales Report for WooCommerce & WP-Lister" v. 1.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 244 characters long)

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
Success! There were no dangerous files found in this plugin1,013 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3103161989
CSS10024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.00
▷ Minimum class complexity2.00
▷ Maximum class complexity48.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods428.57%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin