Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼140.64ms] Passed 4 tests
Server-side resources used by Shop by Look
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 34.55 ▼2.34 |
Dashboard /wp-admin | 3.06 ▲0.01 | 53.05 ▲9.43 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 43.12 ▲3.09 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.14 ▼566.28 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 33.66 ▲2.99 |
Add New /wp-admin/post-new.php?post_type=shop_by_look | 2.82 | 22.35 |
All Items /wp-admin/edit.php?post_type=shop_by_look | 2.82 | 22.88 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Shop by Look: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.80 ▲0.18 | 11.73 ▲2.02 | 50.17 ▲2.76 |
Dashboard /wp-admin | 2,970 ▲36 | 5.92 ▼0.08 | 158.03 ▲5.27 | 113.87 ▲7.93 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 69.20 ▲2.71 | 81.31 ▼12.49 |
Add New Post /wp-admin/post-new.php | 1,500 ▼183 | 18.61 ▲0.14 | 395.01 ▼23.51 | 109.54 ▲6.95 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.00 | 175.60 ▲20.87 | 116.76 ▼1.44 |
Add New /wp-admin/post-new.php?post_type=shop_by_look | 28 | 0.90 | 0.16 | 11.38 |
All Items /wp-admin/edit.php?post_type=shop_by_look | 28 | 0.90 | 0.88 | 10.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=shop_by_look
- > Network (severe)
wp-admin/post-new.php?post_type=shop_by_look - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/edit.php?post_type=shop_by_look
- > Network (severe)
wp-admin/edit.php?post_type=shop_by_look - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: Add images for these screenshots: #1 (/assets/screenshot-1.png), #2 (/assets/screenshot-2.png)
shop-by-look/shop-by-look.php 85% from 13 tests
This is the main PHP file of "Shop by Look" version 1.0-BETA, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 229 characters long)
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0-BETA")
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
Success! There were no dangerous files found in this plugin326 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 54 | 158 | 279 |
PO File | 1 | 13 | 14 | 42 |
JavaScript | 2 | 0 | 0 | 3 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 0% from 2 tests
Image compression 0% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 1.61MB with 0.70MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/screenshot-2.png | 1,457.54KB | 0.00KB | ▼ 100.00% |
assets/screenshot-1.png | 192.53KB | 64.14KB | ▼ 66.68% |
assets/images/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/images/select2.png | 0.60KB | 0.99KB | 0.00% |