Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.35ms] Passed 4 tests
Analyzing server-side resources used by ShedHub Seller
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.67 ▼2.00 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.96 ▼3.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.56 ▲0.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.03 ▼16.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 32.83 ▼3.64 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for ShedHub Seller
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.55 ▼0.85 | 1.69 ▼0.28 | 40.20 ▼3.26 |
Dashboard /wp-admin | 2,206 ▲21 | 5.89 ▲0.98 | 100.00 ▼16.76 | 40.46 ▼4.81 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.03 | 39.14 ▲0.29 | 36.08 ▼0.89 |
Add New Post /wp-admin/post-new.php | 6,195 ▲4,667 | 19.23 ▼4.33 | 893.28 ▲240.17 | 53.40 ▼0.47 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.04 | 96.60 ▼7.02 | 42.40 ▼3.25 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: marketing, electronic commerce
shedhub-seller/shedhub-seller.php Passed 13 tests
The main PHP file in "ShedHub Seller" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
37 characters long description:
Enables ShedHub Seller editor blocks.
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
Good job! No executable or dangerous file extensions detected462 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 10 | 2 | 192 |
SVG | 1 | 0 | 0 | 141 |
PHP | 3 | 20 | 9 | 129 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 42.86% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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 |
images/icon.png | 7.62KB | 3.96KB | ▼ 48.01% |