Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/platron-payment-gate-for-jigoshop/include/PG_Signature.php+14
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.98ms] Passed 4 tests
An overview of server-side resources used by Platron for JigoShop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 47.52 ▲4.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.85 ▼8.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.81 ▲1.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.47 ▼13.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.03 ▲0.23 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Platron for JigoShop
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲75 | 13.26 ▼1.14 | 1.99 ▲0.11 | 42.67 ▲0.83 |
Dashboard /wp-admin | 2,213 ▲21 | 4.88 ▼0.03 | 111.15 ▲3.62 | 42.24 ▲0.16 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.03 ▲0.01 | 34.60 ▼2.32 | 36.36 ▲2.86 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.28 ▲0.13 | 655.88 ▼23.68 | 51.78 ▲2.84 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.06 | 93.79 ▼18.98 | 44.01 ▼3.85 |
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 did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/platron-payment-gate-for-jigoshop/jigoshop-platron.php:28
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: payment gateway, payment, payment gate, jigoshop, platron...
platron-payment-gate-for-jigoshop/jigoshop-platron.php 85% from 13 tests
The primary PHP file in "Platron for JigoShop" version 2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and 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: Name the main plugin file the same as the plugin slug ("platron-payment-gate-for-jigoshop.php" instead of "jigoshop-platron.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected457 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 92 | 165 | 378 |
PO File | 1 | 29 | 64 | 79 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 22 | |
▷ Static methods | 11 | 50.00% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 1 | 4.55% |
▷ Private methods | 3 | 13.64% |
Functions | 3 | |
▷ Named functions | 3 | 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
6 PNG files occupy 0.31MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 68.58KB | 32.07KB | ▼ 53.24% |
images/platron.png | 3.88KB | 2.23KB | ▼ 42.60% |
assets/screenshot-3.png | 46.97KB | 15.59KB | ▼ 66.81% |
assets/screenshot-2.png | 54.13KB | 25.82KB | ▼ 52.30% |
assets/icon-128x128.png | 5.89KB | 2.13KB | ▼ 63.85% |