89% woo-donations

Code Review | Woo Donations

WordPress plugin Woo Donations scored89%from 54 tests.

About plugin

  • Plugin page: woo-donations
  • Plugin version: 3.8
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: Nov 20, 2023
  • Number of updates: 67
  • Update frequency: every 27.9 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

4,000+ active /91,469 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Woo Donations
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.80 ▼2.99
Dashboard /wp-admin3.31 ▲0.0045.90 ▼7.41
Posts /wp-admin/edit.php3.36 ▲0.0043.44 ▼2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.98 ▲0.48
Media Library /wp-admin/upload.php3.23 ▲0.0035.38 ▲3.35

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

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

Browser metrics Passed 4 tests

Woo Donations: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.21 ▼0.061.87 ▲0.1346.77 ▲1.75
Dashboard /wp-admin2,195 ▲185.62 ▼0.0191.39 ▲0.6338.54 ▼4.14
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0337.34 ▼4.6434.58 ▼0.66
Add New Post /wp-admin/post-new.php1,526 ▼023.14 ▼0.12622.65 ▼60.2757.92 ▲12.23
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0397.69 ▼3.3641.89 ▼0.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #9 (Woo Donation pro functionality) image required
  • Screenshots: A description for screenshot #6 is missing in woo-donations/assets to your readme.txt
The official readme.txt might help

woo-donations/woo-donations.php 92% from 13 tests

"Woo Donations" version 3.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 272 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,972 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,2873344,985
PHP318643738
CSS3401249

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions29
▷ Named functions2793.10%
▷ Anonymous functions26.90%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin