Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.93ms] Passed 4 tests
An overview of server-side resources used by eCommerce Dashboard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.79 ▼9.42 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.00 ▲2.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.68 ▼1.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.46 ▼4.73 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.89 ▼0.40 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for eCommerce Dashboard
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 13.56 ▼0.82 | 1.62 ▼0.10 | 42.04 ▼2.90 |
Dashboard /wp-admin | 2,226 ▲41 | 5.86 ▲0.02 | 96.59 ▼4.16 | 78.52 ▲33.82 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.00 ▼0.04 | 37.36 ▼2.82 | 34.09 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,682 ▲149 | 22.38 ▼0.76 | 723.99 ▲48.57 | 62.75 ▲11.13 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.22 ▼0.00 | 95.29 ▼14.24 | 72.49 ▲25.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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 50% 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 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/ecommerce-dashboard/ecommerce-dashboard.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Plugin's Settings Page), #2 (Live demo (show sale stats))
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
ecommerce-dashboard/ecommerce-dashboard.php 92% from 13 tests
The principal PHP file in "eCommerce Dashboard" v. 1.0.8 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin672 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 139 | 158 | 638 |
CSS | 3 | 7 | 11 | 26 |
JavaScript | 2 | 0 | 6 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
6 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
i/guNzr.qr.2.png | 0.23KB | 0.23KB | 0.43% |
screenshot-3.png | 18.84KB | 7.50KB | ▼ 60.20% |
assets/icon.png | 0.62KB | 0.63KB | 0.00% |
i/guNzr.qr.16.png | 0.39KB | 0.41KB | 0.00% |
screenshot-2.png | 12.08KB | 5.31KB | ▼ 56.08% |