89% donation-addon-woocommerce

Code Review | Donation Addon WooCommerce

WordPress plugin Donation Addon WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: donation-addon-wo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1.0
  • WordPress version: 6.3.1
  • First release: Jul 8, 2022
  • Latest release: Nov 2, 2022
  • Number of updates: 14
  • Update frequency: every 9.3 days
  • Top authors: tusharknovator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /265 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Donation Addon WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0062.34 ▲21.42
Dashboard /wp-admin3.31 ▲0.0048.33 ▼0.67
Posts /wp-admin/edit.php3.36 ▲0.0048.74 ▼4.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.12 ▼15.17
Media Library /wp-admin/upload.php3.23 ▲0.0040.17 ▲6.79

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Donation Addon WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.26 ▼0.031.95 ▲0.0345.40 ▲4.02
Dashboard /wp-admin2,195 ▲185.64 ▲0.1388.34 ▼7.0141.38 ▲0.66
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0034.58 ▼9.5833.84 ▼1.07
Add New Post /wp-admin/post-new.php1,526 ▼023.66 ▲0.07648.80 ▼29.0956.04 ▲4.56
Media Library /wp-admin/upload.php1,403 ▼04.20 ▲0.00100.99 ▼15.8342.73 ▼7.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wordpress donation plugin woocommerce, donation for woocommerce, woocommerce donate to charity, woocommerce fundraising plugin

donation-addon-woocommerce/donationaddon.php 85% from 13 tests

This is the main PHP file of "Donation Addon WooCommerce" version 1.0.0, 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:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("donation-addon-woocommerce.php" instead of "donationaddon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin932 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP316936617
CSS2338240
JavaScript111075

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 images were found in this plugin