Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.59ms] Passed 4 tests
A check of server-side resources used by Vesta Guaranteed Payments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.19 ▼7.03 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.31 ▼2.97 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.77 ▼3.48 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.80 ▼12.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.53 ▲4.26 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 42 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_vesta_payment_logs |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Vesta Guaranteed Payments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.21 ▼1.18 | 1.79 ▼0.07 | 42.33 ▼5.71 |
Dashboard /wp-admin | 2,211 ▲23 | 5.84 ▲0.96 | 98.56 ▼10.27 | 44.24 ▲6.39 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.05 ▲0.08 | 39.24 ▼1.47 | 36.50 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 21.99 ▼1.21 | 667.18 ▲54.12 | 60.96 ▲4.21 |
Media Library /wp-admin/upload.php | 1,387 ▼1 | 4.20 ▼0.02 | 100.73 ▼11.17 | 43.13 ▼1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/vesta-guaranteed-payments/includes/vesta_payment_logs.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vesta-guaranteed-payments/includes/vesta_datacollector_finger_print.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/vesta-guaranteed-payments/includes/vesta_payment_logs.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vesta-guaranteed-payments/includes/vesta_payment_capture.php:21
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-list-table.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/vesta-guaranteed-payments/includes/vesta_payment_logs.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/vesta-guaranteed-payments/includes/vesta_payment_logs.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
vesta-guaranteed-payments/vesta-guaranteed-payments.php 85% from 13 tests
The main PHP file in "Vesta Guaranteed Payments" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
- Description: Please don't use more than 140 characters for the plugin description (currently 275 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,141 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 162 | 498 | 1,846 |
CSS | 1 | 63 | 7 | 413 |
JavaScript | 5 | 54 | 38 | 410 |
XSD | 1 | 4 | 14 | 306 |
PO File | 1 | 48 | 58 | 110 |
SVG | 2 | 0 | 1 | 56 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 3 | 5.17% |
▷ Public methods | 55 | 94.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.17% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/maestro.png | 9.75KB | 3.88KB | ▼ 60.26% |
assets/images/authorizenet.png | 16.08KB | 6.55KB | ▼ 59.27% |
assets/images/cards.png | 23.48KB | 7.71KB | ▼ 67.19% |
assets/images/dinersclub.png | 6.35KB | 3.25KB | ▼ 48.74% |
assets/images/discover.png | 5.78KB | 3.07KB | ▼ 46.82% |