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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.29ms] Passed 4 tests
Analyzing server-side resources used by Fondy — Paid memberships Pro Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.49 ▼5.05 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.09 ▼5.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.17 ▼4.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.89 ▼10.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.35 ▼3.45 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Fondy — Paid memberships Pro Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.18 ▼1.16 | 1.88 ▲0.02 | 41.56 ▼0.21 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲0.98 | 105.37 ▲3.30 | 42.27 ▼0.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 40.38 ▼1.01 | 36.02 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.60 ▲0.45 | 602.13 ▲0.52 | 55.38 ▼1.88 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.18 ▼0.03 | 101.89 ▼4.96 | 44.83 ▲0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
fclose() expects parameter 1 to be resource, bool given in wp-content/plugins/pmp-fondy-payment/services/fondy-ins.php on line 130
- > PHP Notice
Undefined variable: gateway in wp-content/plugins/pmp-fondy-payment/views/payment-option-fields.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pmp-fondy-payment/views/payment-option-fields.php:8
- > PHP Warning
fwrite() expects parameter 1 to be resource, bool given in wp-content/plugins/pmp-fondy-payment/services/fondy-ins.php on line 129
- > PHP Warning
fopen(wp-content/plugins/pmp-fondy-payment/services/../logs/fondy.txt): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/pmp-fondy-payment/services/fondy-ins.php on line 128
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pmp-fondy-payment/views/submit-button.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmp-fondy-payment/services/services.php:14
- > PHP Fatal error
Uncaught Error: Class 'PMProGateway' not found in wp-content/plugins/pmp-fondy-payment/classes/class.pmprogateway_fondy.php:13
- > PHP Warning
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)
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
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #10, #3, #4, #5, #6, #7, #8, #9 in pmp-fondy-payment/assets to your readme.txt
pmp-fondy-payment/pmpro-fondy-gateway.php 85% from 13 tests
This is the main PHP file of "Fondy — Paid memberships Pro Payment Gateway" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pmp-fondy-payment.php" instead of "pmpro-fondy-gateway.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("3.5" instead of "2.5")
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 detected646 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 140 | 153 | 588 |
PO File | 1 | 14 | 17 | 41 |
JavaScript | 1 | 4 | 13 | 17 |
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.27 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 15 | 75.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 4 | 30.77% |
▷ Class constants | 9 | 69.23% |
▷ Public constants | 9 | 100.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
No PNG images were found in this plugin