Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/click-pledge-paid-memberships-pro/classes/class.pmprogateway_clickandpledge.php+3
require_once(wp-content/plugins/paid-memberships-pro/classes/gateways/class.pmprogateway.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.40ms] Passed 4 tests
This is a short check of server-side resources used by Paid Memberships Pro Click & Pledge Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.73 ▼5.60 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.97 ▼17.03 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.90 ▲1.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.08 ▼7.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.83 ▲0.70 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paid Memberships Pro Click & Pledge Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.74 ▲0.46 | 1.51 ▼0.15 | 36.99 ▼7.26 |
Dashboard /wp-admin | 2,189 ▲15 | 5.62 ▼0.05 | 93.30 ▲0.67 | 39.01 ▼1.65 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.94 ▼0.01 | 40.45 ▼1.27 | 36.61 ▲2.00 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.20 ▼0.40 | 601.08 ▼56.28 | 50.59 ▲1.43 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.20 ▲0.03 | 100.44 ▲2.12 | 42.83 ▲1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #1 (Settings page)
- Plugin Name: Please specify the plugin name on the first line (
=== click-pledge-paid-memberships-pro ===
)
click-pledge-paid-memberships-pro/pmpro-click-pledge.php 77% from 13 tests
The primary PHP file in "Paid Memberships Pro Click & Pledge Gateway" version 4.23110000-WP6.4.1-P... is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "4.23110000-WP6.4.1-P...")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 273 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("click-pledge-paid-memberships-pro.php" instead of "pmpro-click-pledge.php")
Code Analysis 97% from 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 detected2,860 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 428 | 243 | 2,367 |
XML | 1 | 1 | 0 | 493 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 330.00 |
▷ Minimum class complexity | 330.00 |
▷ Maximum class complexity | 330.00 |
Average method complexity | 7.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.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 | 51 | |
▷ Static methods | 35 | 68.63% |
▷ Public methods | 50 | 98.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.96% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/image_3422.png | 3.51KB | 1.73KB | ▼ 50.58% |
screenshot-1.png | 48.35KB | 18.01KB | ▼ 62.76% |