89% zestard-easy-donation

Code Review | Zestard Easy Donation

WordPress plugin Zestard Easy Donation scored 89% from 54 tests.

About plugin

  • Plugin page: zestard-easy-dona...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 24, 2020
  • Latest release: Dec 16, 2022
  • Number of updates: 12
  • Update frequency: every 75.5 days
  • Top authors: zestardtechnologies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 485 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.00MB] [CPU: ▼3.04ms] Passed 4 tests

Analyzing server-side resources used by Zestard Easy Donation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0048.10 ▲6.09
Dashboard /wp-admin3.31 ▲0.0051.49 ▼3.99
Posts /wp-admin/edit.php3.36 ▲0.0053.41 ▼2.11
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.82 ▼1.93
Media Library /wp-admin/upload.php3.23 ▲0.0035.21 ▼4.12

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Zestard Easy Donation: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲5014.47 ▲1.132.33 ▲0.4243.73 ▲2.33
Dashboard /wp-admin2,200 ▼35.83 ▲0.06100.97 ▼2.2540.03 ▼1.95
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0240.42 ▲3.0236.09 ▲2.05
Add New Post /wp-admin/post-new.php1,542 ▼018.24 ▼0.09588.87 ▼49.0769.99 ▲13.14
Media Library /wp-admin/upload.php1,391 ▲34.27 ▲0.0397.66 ▼7.6343.72 ▲2.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

zestard-easy-donation/zestard-easy-donation.php 92% from 13 tests

The main file in "Zestard Easy Donation" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin14,725 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22,4242,29711,658
CSS292592,051
PHP62812031,016

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity32.00
▷ Minimum class complexity2.00
▷ Maximum class complexity93.00
Average method complexity6.74
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants8
▷ Global constants8100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/donation_img.png1.77KB0.84KB▼ 52.38%