100% wc-donation-platform

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

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

About plugin

  • Plugin page: wc-donation-platform
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.9
  • WordPress version: 5.9.2
  • First release: Oct 9, 2021
  • Latest release: Mar 17, 2022
  • Number of updates: 27
  • Update frequency: every 5.9 days
  • Top authors: flinnn (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 1,971 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼296.37ms] 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.54 ▲0.0369.93 ▲11.11
Dashboard /wp-admin3.43 ▲0.0237.00 ▼3.00
Posts /wp-admin/edit.php3.66 ▲0.0247.44 ▲1.28
Add New Post /wp-admin/post-new.php6.90 ▼0.07100.29 ▼1,188.38
Media Library /wp-admin/upload.php3.31 ▲0.0228.36 ▲4.62

Server storage [IO: ▲0.44MB] [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: 140 new files
Database: no new tables, no new 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 /3,769 ▲1515.59 ▼0.446.17 ▼0.282.26 ▼0.85
Dashboard /wp-admin2,894 ▲406.13 ▼0.07116.90 ▼20.57158.02 ▼9.32
Posts /wp-admin/edit.php2,695 ▲103.36 ▲0.0163.76 ▼2.34144.39 ▼0.94
Add New Post /wp-admin/post-new.php1,665 ▼2616.41 ▼3.41428.80 ▼29.58153.30 ▲2.90
Media Library /wp-admin/upload.php1,704 ▲65.54 ▲0.08165.58 ▲19.07190.79 ▲3.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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

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

"Donation Platform for WooCommerce: Fundraising & Donation Management" version 1.2.1'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.7" 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 detected6,405 lines of code in 126 files:
LanguageFilesBlank linesComment linesLines of code
PHP1171,0962,1605,251
CSS37438759
JavaScript42826354
JSON20041

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.40
Average class complexity24.46
▷ Minimum class complexity4.00
▷ Maximum class complexity77.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods82
▷ Static methods2631.71%
▷ Public methods7793.90%
▷ Protected methods00.00%
▷ Private methods56.10%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ 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