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.04MB] [CPU: ▼6.69ms] Passed 4 tests
A check of server-side resources used by TomS Product Label
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.13 ▲0.15 |
Dashboard /wp-admin | 3.35 ▲0.05 | 52.53 ▼0.93 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.24 ▼5.60 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.47 ▼16.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.52 ▼4.10 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
TomS Product Label: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.83 ▼0.42 | 5.91 ▲4.05 | 44.25 ▲4.40 |
Dashboard /wp-admin | 2,203 ▲18 | 5.83 ▲0.01 | 121.48 ▲14.04 | 42.85 ▼1.91 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.01 | 34.57 ▼6.13 | 32.15 ▼4.49 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.43 ▼5.88 | 717.54 ▲45.70 | 61.17 ▲0.75 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.05 | 97.96 ▼14.00 | 41.21 ▼6.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/toms-product-label/library/toms-wpl-html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/toms-product-label/library/toms-wpl-editor.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: stick on a label, woocommerce, product label, 1d barcode, sealing label...
toms-product-label/toms-product-label.php 85% from 13 tests
Analyzing the main PHP file in "TomS Product Label" version 1.0.0
It is important to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.0")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin785 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 45 | 39 | 418 |
CSS | 2 | 7 | 17 | 339 |
JavaScript | 4 | 2 | 4 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
6 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/toms-product-label.png | 5.44KB | 3.71KB | ▼ 31.92% |
assets/img/TomS-Caprice.png | 3.28KB | 2.95KB | ▼ 10.15% |
assets/img/TomS-68.png | 1.34KB | 1.79KB | 0.00% |
assets/img/ce.png | 0.93KB | 1.17KB | 0.00% |
assets/img/fcc.png | 1.28KB | 1.53KB | 0.00% |