90% wc-donation-platform

Code Review | Donation Platform for WooCommerce: Fundraising & Donation Management

WordPress plugin Donation Platform for WooCommerce: Fundraising & Donation Management scored 90% from 54 tests.

About plugin

  • Plugin page: wc-donation-platform
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 9, 2021
  • Latest release: Sep 24, 2023
  • Number of updates: 40
  • Update frequency: every 17.9 days
  • Top authors: flinnn (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

2,000+ active / 21,577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.75ms] Passed 4 tests

An overview of server-side resources used by Donation Platform for WooCommerce: Fundraising & Donation Management
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.73 ▲6.83
Dashboard /wp-admin3.33 ▲0.0246.99 ▼2.07
Posts /wp-admin/edit.php3.38 ▲0.0243.98 ▲1.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.31 ▼12.90
Media Library /wp-admin/upload.php3.25 ▲0.0246.36 ▲13.17

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 152 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Donation Platform for WooCommerce: Fundraising & Donation Management
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.48 ▲0.292.54 ▲0.8749.91 ▲10.84
Dashboard /wp-admin2,210 ▲195.79 ▲0.90100.55 ▼7.3739.80 ▼0.85
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0234.21 ▼0.6935.69 ▲1.46
Add New Post /wp-admin/post-new.php1,537 ▼021.03 ▲2.81725.55 ▲76.1463.81 ▲4.42
Media Library /wp-admin/upload.php1,392 ▲74.15 ▼0.05124.88 ▼19.1557.47 ▲0.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
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
No browser issues were found

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
5 plugin tags: charity, fundraising, donation, woocommerce donation, recurring donation

wc-donation-platform/wc-donation-platform.php 92% from 13 tests

"Donation Platform for WooCommerce: Fundraising & Donation Management" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.8" instead of "4.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected8,990 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PHP1221,3212,6326,918
CSS4100641,250
JavaScript54944621
Markdown2420153
JSON20039
SVG2009

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity26.82
▷ Minimum class complexity4.00
▷ Maximum class complexity81.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods134
▷ Static methods3526.12%
▷ Public methods11485.07%
▷ Protected methods00.00%
▷ Private methods2014.93%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants11
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.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
PNG images were not found in this plugin