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: ▼3.14ms] Passed 4 tests
A check of server-side resources used by EBS Merchant Gateway For eShop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.16 ▲3.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.42 ▼2.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.88 ▼5.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.98 ▼1.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.30 ▼3.55 |
Server storage [IO: ▲0.76MB] [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: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EBS Merchant Gateway For eShop
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.41 ▼0.40 | 2.43 ▲0.09 | 45.66 ▲1.21 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.11 | 87.38 ▼7.53 | 39.03 ▼2.90 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.12 | 40.00 ▲4.35 | 36.01 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,541 ▼4 | 18.62 ▼4.59 | 616.84 ▼71.49 | 54.35 ▼15.58 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.20 ▲0.04 | 97.68 ▼12.84 | 41.54 ▼3.97 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ebs-merchant-gateway-for-eshop/ebs-class.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ebs-merchant-gateway-for-eshop/ebs-mg-gateway.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ebs-merchant-gateway-for-eshop/ipn.php:8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/ebs-merchant-gateway-for-eshop/ipn.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid version format
- Screenshots: Add images for these screenshots: #1 (EBS Merchant Gateway Settings "LIVE" Mode.), #2 (EBS Merchant Gateway Settings "TEST" Mode.), #3 (eShop Checkout Page.), #4 (Transaction successful page for payment through EBS Gateway.), #5 (Invalid Account ID Error in EBS Gateway.)
ebs-merchant-gateway-for-eshop/ebs-mg-gateway.php 85% from 13 tests
The main PHP script in "EBS Merchant Gateway For eShop" version 0.1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ebs-merchant-gateway-for-eshop.php" instead of "ebs-mg-gateway.php")
- Description: Keep the plugin description shorter than 140 characters (currently 202 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin534 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 127 | 353 | 395 |
JavaScript | 2 | 4 | 26 | 139 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
ebs.png | 7.29KB | 3.02KB | ▼ 58.65% |