Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.60MB] [CPU: ▼19.76ms] Passed 4 tests
An overview of server-side resources used by Payhero SPS Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.49 ▲0.66 |
Dashboard /wp-admin | 3.40 ▲0.05 | 49.11 ▼17.14 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.26 ▲2.55 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.62 | 39.03 ▼65.12 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.14 ▲5.70 |
Server storage [IO: ▲81.50MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- The filesystem usage should be lower than 25MB (currently using 81.50MB)
Filesystem: 4,064 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payhero SPS Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲125 | 14.25 ▼0.02 | 2.16 ▲0.51 | 48.33 ▲8.28 |
Dashboard /wp-admin | 2,248 ▲71 | 5.54 ▼0.14 | 83.15 ▼5.53 | 39.55 ▼6.59 |
Posts /wp-admin/edit.php | 2,121 ▲24 | 2.01 ▲0.00 | 39.71 ▲1.94 | 35.42 ▲2.16 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 18.09 ▼5.03 | 644.43 ▼44.91 | 86.64 ▲26.12 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.18 ▲0.01 | 100.42 ▼3.23 | 44.49 ▲0.84 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/payhero-sps-gateway/tag/1.3.2/tag/1.3.1/tags/1.3.0/index.php
- > /wp-content/plugins/payhero-sps-gateway/tag/1.3.2/tag/1.3.1/index.php
- > /wp-content/plugins/payhero-sps-gateway/tags/1.3.0/index.php
- > /wp-content/plugins/payhero-sps-gateway/tag/1.3.2/index.php
- > /wp-content/plugins/payhero-sps-gateway/index.php
- > /wp-content/plugins/payhero-sps-gateway/tag/1.3.2/tags/1.3.0/index.php
- > /wp-content/plugins/payhero-sps-gateway/tag/1.3.1/index.php
- > /wp-content/plugins/payhero-sps-gateway/tag/1.3.1/tags/1.3.0/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in payhero-sps-gateway/assets to your readme.txt
- Contributors: Plugin contributors not specified
payhero-sps-gateway/payhero-callback-url-functions.php 85% from 13 tests
The main PHP script in "Payhero SPS Gateway" version 1.3.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("payhero-sps-gateway.php" instead of "payhero-callback-url-functions.php")
- Description: The description should be shorter than 140 characters (currently 288 characters long)
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 detected76,990 lines of code in 318 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 16 | 2,705 | 142 | 36,588 |
JavaScript | 136 | 8,212 | 3,188 | 29,324 |
Sass | 88 | 1,336 | 1,289 | 6,771 |
PHP | 6 | 103 | 175 | 2,965 |
TypeScript | 64 | 0 | 4 | 491 |
Markdown | 3 | 171 | 0 | 472 |
JSON | 5 | 0 | 0 | 379 |
PHP code Passed 2 tests
This is a very shot review of 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.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 68 | |
▷ Named functions | 68 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin