Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.14ms] Passed 4 tests
This is a short check of server-side resources used by Voguepay plugin for Paid Memberships Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.41 ▼1.90 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.45 ▼2.77 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 51.05 ▲5.53 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.78 ▼9.62 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.97 ▲1.74 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Voguepay plugin for Paid Memberships Pro
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.28 | 1.80 ▲0.01 | 44.03 ▼0.60 |
Dashboard /wp-admin | 2,206 ▲15 | 4.90 ▼0.96 | 111.08 ▼7.19 | 40.04 ▼7.28 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 41.13 ▲3.57 | 35.39 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.12 ▼0.12 | 603.94 ▼26.87 | 51.93 ▼2.86 |
Media Library /wp-admin/upload.php | 1,391 ▲12 | 4.27 ▲0.05 | 97.15 ▼8.27 | 41.26 ▼3.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: payment plugin, mastercard, payment gateway, visa, online payment...
pmpro-voguepay/class.pmprogateway_voguepay.php 92% from 13 tests
The principal PHP file in "Voguepay plugin for Paid Memberships Pro" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pmpro-voguepay.php" instead of "class.pmprogateway_voguepay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected360 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 145 | 62 | 360 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 17 | |
▷ Static methods | 11 | 64.71% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin