Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.19ms] Passed 4 tests
Analyzing server-side resources used by PAYZA Merchant Gateway For eShop
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.28 ▼1.86 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.70 ▼2.87 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.89 ▼5.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.85 ▼6.27 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.05 ▼2.22 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for PAYZA Merchant Gateway For eShop
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.28 ▼0.45 | 1.85 ▼0.05 | 42.64 ▼8.13 |
Dashboard /wp-admin | 2,192 ▲12 | 5.48 ▼0.16 | 88.95 ▼8.35 | 40.00 ▼2.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.02 | 34.65 ▼0.50 | 36.37 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.45 ▲0.24 | 612.10 ▼56.13 | 58.44 ▲3.62 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.17 ▼0.02 | 96.90 ▼4.91 | 43.82 ▼1.27 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/payza-merchant-gateway-for-eshop/payza-class.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/payza-merchant-gateway-for-eshop/payza-mg-gateway.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/payza-merchant-gateway-for-eshop/ipn.php:11
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/payza-merchant-gateway-for-eshop/ipn.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 your attention:
- Screenshots: Add images for these screenshots: #1 (Successful plugin Installation & Activation.), #2 (Merchant details entry fields.), #3 (Merchant details entry fields filled.), #4 (eShop store Checkout Page.), #5 (Checkout Page in Payza Gateway.), #6 (Payment confirmation page.), #7 (Payment Success redirection notification page.), #8 (Payment Success Page.)
- Requires at least: Invalid plugin version format
payza-merchant-gateway-for-eshop/payza-mg-gateway.php 85% from 13 tests
"PAYZA Merchant Gateway For eShop" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("payza-merchant-gateway-for-eshop.php" instead of "payza-mg-gateway.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 202 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin335 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 48 | 153 | 335 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
payza.png | 5.81KB | 3.37KB | ▼ 42.11% |