Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.78ms] Passed 4 tests
This is a short check of server-side resources used by EMS Online
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 42.94 ▲3.61 |
Dashboard /wp-admin | 3.40 ▲0.09 | 47.20 ▼1.37 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.32 ▲1.78 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.65 ▲2.84 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.80 ▼0.14 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for EMS Online
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.33 ▲0.16 | 1.78 ▲0.08 | 47.29 ▼0.63 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.07 | 82.49 ▼4.04 | 37.84 ▼6.19 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.01 | 39.94 ▲3.30 | 35.74 ▲2.16 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.13 ▲0.02 | 643.75 ▼73.13 | 58.52 ▼0.88 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.22 ▲0.06 | 96.68 ▼19.40 | 39.15 ▼9.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require(wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/examples/ideal-payment.php on line 3
- > PHP Warning
require(wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/examples/payment-with-method-selection.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/tests/GingerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/tests/HttpClient/CurlHttpClientTest.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Ginger\\HttpClient\\HttpClient' not found in wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/tests/HttpClient/MockHttpClient.php:8
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/examples/payment-with-method-selection.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/tests/ApiClientTest.php:9
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/examples/ideal-payment.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Ginger\\HttpClient\\HttpClient' not found in wp-content/plugins/ems-online/vendor/gingerpayments/ginger-php/src/HttpClient/CurlHttpClient.php:5
- > PHP Warning
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 93% 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
3 plugin tags: woocommerce, ems online, payment
ems-online/ginger.php 85% from 13 tests
The main PHP script in "EMS Online" version 1.3.13 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("ems-online.php" instead of "ginger.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
No dangerous file extensions were detected5,152 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 559 | 952 | 2,898 |
PO File | 5 | 595 | 647 | 1,647 |
Markdown | 3 | 151 | 0 | 312 |
SVG | 13 | 0 | 1 | 154 |
JSON | 3 | 0 | 0 | 106 |
XML | 1 | 3 | 0 | 22 |
YAML | 1 | 0 | 0 | 12 |
INI | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review 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.34 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 8 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 11 | 29.73% |
Methods | 170 | |
▷ Static methods | 31 | 18.24% |
▷ Public methods | 163 | 95.88% |
▷ Protected methods | 2 | 1.18% |
▷ Private methods | 5 | 2.94% |
Functions | 22 | |
▷ Named functions | 18 | 81.82% |
▷ Anonymous functions | 4 | 18.18% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 100.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
13 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ginger_ideal.png | 2.45KB | 1.73KB | ▼ 29.43% |
images/ginger_apple-pay.png | 0.88KB | 1.22KB | 0.00% |
images/ginger_bank-transfer.png | 2.56KB | 1.80KB | ▼ 29.60% |
images/ginger_google-pay.png | 2.74KB | 1.83KB | ▼ 33.49% |
images/ginger_klarna-pay-now.png | 52.72KB | 1.39KB | ▼ 97.36% |