Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.70ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Template Hints
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.65 ▼5.18 |
Dashboard /wp-admin | 3.31 ▲0.01 | 54.39 ▼4.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.15 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 98.21 ▼2.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.66 ▲5.53 |
Server storage [IO: ▲0.25MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Template Hints
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.38 ▼0.26 | 1.70 ▼0.35 | 41.23 ▼5.79 |
Dashboard /wp-admin | 2,201 ▲24 | 5.63 ▲0.05 | 83.08 ▼18.52 | 40.13 ▼6.61 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▲0.02 | 39.71 ▲3.97 | 39.01 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.12 ▲0.04 | 658.51 ▼44.03 | 52.53 ▲1.46 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.21 ▼0.01 | 106.80 ▲1.31 | 49.99 ▲3.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: woocommerce theme, design helper, woocommerce, ecommerce, woocommerce helper...
woocommerce-template-hints/woocommerce-template-hints.php Passed 13 tests
The primary PHP file in "WooCommerce Template Hints" version 1.0.0 is used by WordPress to initiate all plugin functionality
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected65 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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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
It is recommended to compress PNG files in your plugin to 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-1.png | 111.62KB | 37.08KB | ▼ 66.78% |
screenshot-2.png | 48.95KB | 16.54KB | ▼ 66.21% |