84% woo-print-report

Code Review | WooCommerce Print Report

WordPress plugin WooCommerce Print Report scored84%from 54 tests.

About plugin

  • Plugin page: woo-print-report
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2019
  • Latest release: May 15, 2019
  • Number of updates: 6
  • Update frequency: every 12.8 days
  • Top authors: IQComputing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /805 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.01MB] [CPU: ▼6.24ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Print Report
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.86 ▼2.70
Dashboard /wp-admin3.32 ▲0.0155.32 ▲4.20
Posts /wp-admin/edit.php3.37 ▲0.0156.02 ▲0.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.48 ▼22.39
Media Library /wp-admin/upload.php3.24 ▲0.0134.24 ▼0.25

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Print Report
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.37 ▲0.011.79 ▲0.0142.52 ▼1.82
Dashboard /wp-admin2,195 ▲215.65 ▲0.0795.63 ▲2.4040.17 ▲0.85
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0740.87 ▲0.1537.26 ▲0.73
Add New Post /wp-admin/post-new.php1,526 ▼323.07 ▼0.00683.82 ▲33.4055.96 ▼1.51
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.03126.16 ▲20.4648.18 ▼0.07

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-print-report/woocommerce-print-report.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: woocommerce, print

woo-print-report/woocommerce-print-report.php 92% from 13 tests

"WooCommerce Print Report" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-print-report.php" instead of "woocommerce-print-report.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected102 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1335338
JavaScript219936
CSS110628

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin