Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/custom-post-donations/custom-post-donations.php+59
Undefined variable: cpDonations_plugin_db_version
Server metrics [RAM: ▲0.09MB] [CPU: ▼264.06ms] Passed 4 tests
This is a short check of server-side resources used by WordPress PayPal Donations
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 34.77 ▲14.36 |
Dashboard /wp-admin | 3.13 ▲0.08 | 43.63 ▼4.60 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 43.78 ▼1.99 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 91.71 ▼1,042.45 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 28.78 ▼7.18 |
Edit Donation /wp-admin/admin.php?page=edit-cpDonation | 3.10 | 28.41 |
Add Donation /wp-admin/admin.php?page=add-cpDonation | 3.06 | 30.15 |
WP Donations /wp-admin/admin.php?page=cpDonations-admin | 3.06 | 21.75 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cp_donations |
New WordPress options |
---|
cpDonations_plugin_db_version |
cpDonations_returnUrl |
cpDonations_Business_Name |
widget_cp_donation_widget |
cpDonations_buttonStyle |
cpDonations_restrictToPagePost |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress PayPal Donations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,823 ▲217 | 16.28 ▲0.74 | 13.11 ▲5.46 | 44.19 ▼5.62 |
Dashboard /wp-admin | 2,968 ▲118 | 5.98 ▲0.13 | 135.76 ▼0.20 | 111.12 ▲7.01 |
Posts /wp-admin/edit.php | 2,747 ▲41 | 2.69 ▼0.00 | 68.08 ▲2.51 | 93.08 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,884 ▲31 | 19.17 ▼0.04 | 374.83 ▼18.70 | 108.38 ▲3.92 |
Media Library /wp-admin/upload.php | 1,813 ▲41 | 5.01 ▼0.01 | 148.43 ▼21.09 | 110.44 ▼12.75 |
Edit Donation /wp-admin/admin.php?page=edit-cpDonation | 1,135 | 2.10 | 62.53 | 79.17 |
Add Donation /wp-admin/admin.php?page=add-cpDonation | 1,376 | 2.09 | 61.87 | 82.37 |
WP Donations /wp-admin/admin.php?page=cpDonations-admin | 1,366 | 2.10 | 59.92 | 76.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_cp_donations
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_cp_donation_widget
- cpDonations_returnUrl
- cpDonations_buttonStyle
- cpDonations_Business_Name
- cpDonations_plugin_db_version
- cpDonations_restrictToPagePost
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-post-donations/admin/edit-cpDonation.php
- > /wp-content/plugins/custom-post-donations/admin/add-cpDonation.php
- > /wp-content/plugins/custom-post-donations/admin/ws.php
- > /wp-content/plugins/custom-post-donations/admin/overview.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-post-donations/custom-post-donations.php:37
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/custom-post-donations/custom-post-donations.php on line 34
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-donations/lib/widget-class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
custom-post-donations/custom-post-donations.php 92% from 13 tests
"WordPress PayPal Donations" version 4.2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 178 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,037 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 69 | 45 | 800 |
JavaScript | 4 | 32 | 52 | 222 |
CSS | 2 | 3 | 2 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected