Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.15ms] Passed 4 tests
This is a short check of server-side resources used by PAYHOW Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.88 ▼0.82 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.09 ▼0.34 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.27 ▲2.22 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.00 ▼8.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.29 ▲1.09 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for PAYHOW Checkout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.72 ▲0.37 | 1.85 ▲0.25 | 40.17 ▼2.54 |
Dashboard /wp-admin | 2,197 ▲17 | 5.72 ▲0.18 | 95.14 ▲6.98 | 89.22 ▲46.96 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.95 ▼0.08 | 37.67 ▼0.08 | 33.14 ▼4.70 |
Add New Post /wp-admin/post-new.php | 1,704 ▲178 | 24.53 ▲1.06 | 704.89 ▲41.34 | 52.93 ▼11.37 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.18 ▼0.04 | 99.66 ▼9.19 | 78.00 ▲30.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/payhow/plugin.php+280
Undefined index: wp_user_require_logon_checkout
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 add_filter() in wp-content/plugins/payhow/plugin.php:174
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/payhow/plugin.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_post() in wp-content/plugins/payhow/Payhow.php:31
- > PHP Warning
include_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/payhow/plugin.php on line 12
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/payhow/plugin.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: ame, checkout transparente, checkout, picpay, dropshipping checkout...
payhow/plugin.php 92% from 13 tests
Analyzing the main PHP file in "PAYHOW Checkout" version 1.0.1
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("payhow.php" instead of "plugin.php")
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
Good job! No executable or dangerous file extensions detected381 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 38 | 265 |
JavaScript | 1 | 27 | 7 | 65 |
CSS | 1 | 2 | 0 | 51 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-fail.png | 0.44KB | 0.32KB | ▼ 25.56% |
images/payhow_icon_menu.png | 1.27KB | 0.67KB | ▼ 47.58% |
images/payhow_logo.png | 23.39KB | 9.70KB | ▼ 58.54% |
images/icon-refresh.png | 1.42KB | 0.65KB | ▼ 54.08% |
images/icon-success.png | 0.67KB | 0.42KB | ▼ 36.73% |