Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.71ms] Passed 4 tests
Analyzing server-side resources used by Payment Gateway for QPayPro on Formidable
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.74 ▼1.16 |
Dashboard /wp-admin | 3.35 ▲0.00 | 52.42 ▼14.62 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.24 ▲0.28 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.56 ▼11.31 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.88 ▲0.25 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Gateway for QPayPro on Formidable
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 14.38 ▲0.06 | 2.17 ▼0.07 | 47.18 ▲2.49 |
Dashboard /wp-admin | 2,192 ▲15 | 5.64 ▲0.07 | 87.89 ▼14.67 | 38.39 ▼7.87 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.05 | 33.76 ▼4.89 | 34.22 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,547 ▲1 | 23.11 ▼0.07 | 627.90 ▼57.15 | 54.81 ▼0.36 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▼0.02 | 97.17 ▼12.77 | 43.34 ▼5.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/frm-qpaypro/admin/views/settings/form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function formidable_qpaypro\\Admin\\add_action() in wp-content/plugins/frm-qpaypro/admin/wp-actions.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function formidable_qpaypro\\Admin\\add_filter() in wp-content/plugins/frm-qpaypro/admin/wp-filters.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: A description for screenshot #4 is required in frm-qpaypro/assets to your readme.txt
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Screenshots: Screenshot #5 (Example of how to setup field keys in orther to match qpaypro requirements.) image required
frm-qpaypro/formidable-qpaypro.php 77% from 13 tests
The main PHP script in "Payment Gateway for QPayPro on Formidable" version 0.0.4 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("frm-qpaypro.php" instead of "formidable-qpaypro.php")
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,173 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 311 | 348 | 1,173 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 32.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 59 | 75.64% |
▷ Public methods | 53 | 67.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 32.05% |
Functions | 7 | |
▷ Named functions | 7 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.71MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 235.65KB | 140.82KB | ▼ 40.24% |
assets/screenshot-4.png | 128.35KB | 60.92KB | ▼ 52.54% |
assets/icon-128x128.png | 6.06KB | 3.44KB | ▼ 43.30% |
assets/screenshot-2.PNG | 135.06KB | 71.32KB | ▼ 47.19% |
assets/screenshot-3.PNG | 44.91KB | 21.60KB | ▼ 51.90% |