Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.68ms] Passed 4 tests
An overview of server-side resources used by mg Donations
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.60 ▲3.11 |
Dashboard /wp-admin | 3.39 ▲0.04 | 43.24 ▼18.56 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 45.83 ▼10.70 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 88.91 ▼5.65 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.29 ▲0.21 |
About /wp-admin/admin.php?page=mg_dn_about | 3.27 | 28.62 |
Donation Causes /wp-admin/edit.php?post_type=mg_donation_cause | 3.36 | 35.11 |
Donations /wp-admin/edit.php?post_type=mg_donation | 3.36 | 33.98 |
Site Info /wp-admin/admin.php?page=mg_dn_site_info | 3.27 | 28.70 |
Settings /wp-admin/admin.php?page=mg_dn_settings | 3.27 | 30.66 |
Server storage [IO: ▲0.05MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
mg_dn |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_mg_dn_widget_donation_cause |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
mg Donations: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲131 | 13.16 ▼1.22 | 1.87 ▲0.14 | 39.09 ▼1.03 |
Dashboard /wp-admin | 2,250 ▲64 | 4.90 ▼0.03 | 98.90 ▼8.14 | 39.13 ▼1.85 |
Posts /wp-admin/edit.php | 2,133 ▲41 | 2.06 ▲0.06 | 39.17 ▼2.26 | 34.62 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 22.95 ▲4.72 | 570.84 ▼32.07 | 48.71 ▼0.81 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.24 ▲0.08 | 95.89 ▼2.88 | 41.34 ▼4.70 |
About /wp-admin/admin.php?page=mg_dn_about | 813 | 2.03 | 22.58 | 25.82 |
Donation Causes /wp-admin/edit.php?post_type=mg_donation_cause | 1,114 | 1.96 | 30.93 | 26.36 |
Donations /wp-admin/edit.php?post_type=mg_donation | 1,087 | 2.10 | 32.62 | 27.73 |
Site Info /wp-admin/admin.php?page=mg_dn_site_info | 795 | 2.18 | 23.32 | 22.27 |
Settings /wp-admin/admin.php?page=mg_dn_settings | 945 | 2.05 | 23.45 | 25.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_mg_dn_widget_donation_cause
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mg-donations/mg-dn-templates/buttons/paypal-1.php
- > /wp-content/plugins/mg-donations/mg-dn-templates/buttons/paypal-3.php
- > /wp-content/plugins/mg-donations/mg-dn-templates/buttons/paypal-2.php
- > /wp-content/plugins/mg-donations/mg-dn-templates/buttons/paypal-4.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mg-donations/mg-dn-templates/buttons/default.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/mg-donations/mg-dn-templates/widgets/donation-cause.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/mg-donations/mg-dn-templates/shortcodes/donation-cause.php:12
- > PHP Notice
Undefined variable: show_title in wp-content/plugins/mg-donations/mg-dn-templates/widgets/donation-cause.php on line 1
- > PHP Notice
Undefined variable: show_title in wp-content/plugins/mg-donations/mg-dn-templates/shortcodes/donation-cause.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
mg-donations/plugin.php 85% from 13 tests
This is the main PHP file of "mg Donations" version 1.1, 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:
- Description: A good plugin description is longer than 10 characters (currently 9 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("mg-donations.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,183 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 341 | 102 | 1,176 |
CSS | 1 | 4 | 7 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 7 | 8.75% |
▷ Public methods | 70 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 12.50% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin