Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.20MB] [CPU: ▼312.87ms] Passed 4 tests
This is a short check of server-side resources used by ePages Online Shop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 58.32 ▲6.97 |
Dashboard /wp-admin | 3.42 ▲0.01 | 23.49 ▼37.92 |
Posts /wp-admin/edit.php | 3.54 ▼0.10 | 38.19 ▼3.95 |
Add New Post /wp-admin/post-new.php | 6.15 ▼0.83 | 74.70 ▼1,196.39 |
Media Library /wp-admin/upload.php | 3.43 ▲0.13 | 21.09 ▼13.23 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_cart_widget |
Browser metrics Passed 4 tests
Checking browser requirements for ePages Online Shop
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,088 ▲334 | 15.86 ▲0.22 | 5.86 ▼0.95 | 2.89 ▼0.15 |
Dashboard /wp-admin | 3,173 ▲319 | 6.19 ▲0.00 | 122.94 ▼12.55 | 184.71 ▲18.32 |
Posts /wp-admin/edit.php | 2,939 ▲248 | 3.13 ▼0.11 | 65.38 ▼27.55 | 156.76 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,797 ▲86 | 18.31 ▼3.08 | 376.40 ▼79.22 | 200.26 ▲33.01 |
Media Library /wp-admin/upload.php | 1,980 ▲282 | 5.63 ▲0.15 | 140.82 ▼10.13 | 238.40 ▲48.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 1 option
- widget_cart_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/epages-online-shop/functions/cart_widget.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/epages-online-shop/templates/popup.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/epages-online-shop/functions/register_shortcode.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/epages-online-shop/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/epages-online-shop/templates/options_page.php:2
- > PHP Notice
Undefined variable: epages_plugin_url in wp-content/plugins/epages-online-shop/templates/popup.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/epages-online-shop/templates/popup.php on line 6
- > PHP Notice
Undefined variable: epages_api_http_options in wp-content/plugins/epages-online-shop/templates/popup.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/epages-online-shop/templates/popup.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/epages-online-shop/templates/popup.php on line 6
- > PHP Notice
Undefined variable: epages_api_url in wp-content/plugins/epages-online-shop/templates/popup.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
epages-online-shop/index.php 92% from 13 tests
"ePages Online Shop" version 5.0.20's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("epages-online-shop.php" instead of "index.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
There were no executable files found in this plugin6,870 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 15 | 884 | 884 | 2,083 |
CSS | 5 | 41 | 13 | 1,917 |
JavaScript | 5 | 132 | 55 | 815 |
SVG | 3 | 0 | 1 | 715 |
JSON | 15 | 0 | 0 | 525 |
PHP | 17 | 103 | 55 | 427 |
SQL | 1 | 47 | 72 | 262 |
Markdown | 1 | 46 | 0 | 112 |
YAML | 1 | 3 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.61MB with 0.42MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 214.16KB | 67.93KB | ▼ 68.28% |
assets/screenshot-1.png | 410.87KB | 123.81KB | ▼ 69.87% |