Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.78ms] Passed 4 tests
Analyzing server-side resources used by Payssion Plugin for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.77 ▼0.42 |
Dashboard /wp-admin | 3.34 ▼0.00 | 47.29 ▼9.73 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.80 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.39 ▼4.74 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.93 ▼0.24 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 230 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Payssion Plugin for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.17 ▼0.43 | 1.68 ▲0.17 | 44.26 ▲5.88 |
Dashboard /wp-admin | 2,198 ▲20 | 5.59 ▼0.02 | 85.18 ▼16.63 | 42.43 ▼0.10 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.13 | 36.25 ▼0.62 | 34.28 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,525 ▼4 | 23.23 ▼0.51 | 600.52 ▼67.15 | 49.35 ▼0.39 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.05 | 93.00 ▼8.80 | 43.47 ▼0.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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 | 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payssion-international-payment-gateway/payssion.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
payssion-international-payment-gateway/payssion.php 85% from 13 tests
The main PHP script in "Payssion Plugin for Woocommerce" version 1.2.3 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("payssion-international-payment-gateway.php" instead of "payssion.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin6,074 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 323 | 161 | 3,903 |
PHP | 113 | 527 | 1,206 | 2,171 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 1.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 112 | |
▷ Abstract classes | 1 | 0.89% |
▷ Concrete classes | 111 | 99.11% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 1 | 1.27% |
▷ Public methods | 47 | 59.49% |
▷ Protected methods | 16 | 20.25% |
▷ Private methods | 16 | 20.25% |
Functions | 6 | |
▷ Named functions | 6 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
114 PNG files occupy 0.72MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/santander_br.png | 7.08KB | 2.69KB | ▼ 62.08% |
assets/images/molpay.png | 5.40KB | 3.00KB | ▼ 44.44% |
assets/images/pse_co.png | 2.07KB | 2.08KB | 0.00% |
assets/images/bancomer_mx.png | 8.79KB | 2.89KB | ▼ 67.13% |
assets/images/fpx_my.png | 5.60KB | 2.28KB | ▼ 59.24% |