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.09MB] [CPU: ▼7.82ms] Passed 4 tests
Analyzing server-side resources used by Ultimate Membership Pro - PayFast
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 45.75 ▲4.13 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.44 ▼6.37 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.98 ▲2.82 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 82.11 ▼29.64 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.62 ▲1.90 |
Server storage [IO: ▲0.12MB] [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: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate Membership Pro - PayFast
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.20 ▼1.18 | 4.68 ▲2.53 | 40.61 ▼7.28 |
Dashboard /wp-admin | 2,213 ▲25 | 4.82 ▼0.07 | 108.32 ▼2.45 | 39.36 ▼6.23 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.07 | 39.01 ▼0.03 | 37.68 ▲3.65 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 23.38 ▲0.33 | 680.62 ▲52.55 | 57.23 ▼2.20 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.28 ▲0.13 | 97.83 ▼0.78 | 41.68 ▼1.43 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function ihc_check_payment_status() in wp-content/plugins/ultimate-membership-pro-payfast/views/box.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ultimate-membership-pro-payfast/views/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-membership-pro-payfast/views/form.php:1
- > PHP Fatal error
Uncaught Error: Class 'Indeed\\Ihc\\Gateways\\PaymentAbstract' not found in wp-content/plugins/ultimate-membership-pro-payfast/classes/PayFast.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ultimate-membership-pro-payfast/ultimate-membership-pro-payfast.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Addon activated), #2 (Order from the list of payment tools), #3 (Payfast activated in Payment Services)
ultimate-membership-pro-payfast/ultimate-membership-pro-payfast.php 92% from 13 tests
The main PHP file in "Ultimate Membership Pro - PayFast" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,316 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 233 | 492 | 1,251 |
CSS | 2 | 8 | 20 | 42 |
SVG | 1 | 0 | 0 | 12 |
JSON | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 10 | 16.39% |
▷ Public methods | 59 | 96.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.28% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ump_payfast.png | 11.07KB | 5.94KB | ▼ 46.36% |