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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼304.36ms] Passed 4 tests
Server-side resources used by WooCommerce Template Hints
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 51.98 ▲2.49 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.42 ▼1.66 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.49 ▼0.97 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 93.85 ▼1,214.24 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 23.71 ▼0.57 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Template Hints
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲49 | 15.53 ▼0.25 | 7.32 ▲1.80 | 2.29 ▼0.24 |
Dashboard /wp-admin | 2,906 ▲45 | 6.08 ▼0.12 | 113.84 ▼18.62 | 156.55 ▼0.91 |
Posts /wp-admin/edit.php | 2,700 ▲6 | 3.24 ▼0.00 | 63.55 ▼0.40 | 137.00 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,792 ▲124 | 21.35 ▲2.50 | 429.66 ▼0.10 | 157.11 ▲2.17 |
Media Library /wp-admin/upload.php | 1,709 ▲11 | 5.52 ▲0.05 | 146.56 ▲3.02 | 188.39 ▲5.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: development helper, woocommerce helper, ecommerce, design helper, woocommerce theme...
woocommerce-template-hints/woocommerce-template-hints.php Passed 13 tests
"WooCommerce Template Hints" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
126 characters long description:
WooCommerce Template Hints adds a visual border around parts of all WooCommerce pages showing details about the template used.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin65 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 68 | 59 |
Markdown | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 2 | 28.57% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 48.95KB | 16.54KB | ▼ 66.21% |
screenshot-1.png | 111.62KB | 37.08KB | ▼ 66.78% |