89% donation-round-up-for-woocommerce

Code Review | WooCommerce Order Round Up

WordPress plugin WooCommerce Order Round Up scored89%from 54 tests.

About plugin

  • Plugin page: donation-round-up...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Aug 13, 2020
  • Number of updates: 4
  • Update frequency: every 28.8 days
  • Top authors: quicodomingo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /733 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 gracefully, with no errors

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

An overview of server-side resources used by WooCommerce Order Round Up
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.91 ▲1.39
Dashboard /wp-admin3.31 ▲0.0051.80 ▼4.87
Posts /wp-admin/edit.php3.36 ▲0.0052.00 ▲0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.71 ▼17.95
Media Library /wp-admin/upload.php3.23 ▲0.0036.30 ▼1.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Order Round Up
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.021.98 ▲0.4439.92 ▼1.71
Dashboard /wp-admin2,198 ▲275.57 ▼0.0986.82 ▼4.4739.73 ▼5.81
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0139.71 ▲0.6936.25 ▼1.15
Add New Post /wp-admin/post-new.php1,533 ▲723.27 ▲0.00620.25 ▼62.2851.19 ▼6.59
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0395.68 ▼15.6444.25 ▼5.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (WooCommerce Order Round Up settings page.), #2 (Sample checkbox displayed on the checkout form.)
You can take inspiration from this readme.txt

donation-round-up-for-woocommerce/woocommerce-donation-round-up.php 92% from 13 tests

The main PHP script in "WooCommerce Order Round Up" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("donation-round-up-for-woocommerce.php" instead of "woocommerce-donation-round-up.php")

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
Everything looks great! No dangerous files found in this plugin1,241 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6113193783
Markdown1450289
PO File25456169

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity148.00
▷ Minimum class complexity148.00
▷ Maximum class complexity148.00
Average method complexity8.35
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1050.00%
▷ Protected methods1050.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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 files were detected