Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > User error in wp-content/plugins/label-grid-tools/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.58ms] Passed 4 tests
An overview of server-side resources used by LabelGrid Tools
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.38 ▲0.54 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.86 ▼0.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.54 ▼0.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.83 ▼9.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.22 ▼0.56 |
Server storage [IO: ▲23.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 1,650 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for LabelGrid Tools
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▼0.03 | 1.66 ▼0.01 | 37.69 ▼6.27 |
Dashboard /wp-admin | 2,198 ▲20 | 5.64 ▼0.01 | 88.65 ▼8.94 | 38.85 ▼0.02 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.08 | 37.48 ▼3.78 | 36.30 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.01 ▲0.02 | 684.63 ▲58.23 | 51.95 ▲3.85 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.17 ▲0.06 | 94.92 ▼3.46 | 41.71 ▼0.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/label-grid-tools/public/partials/labelgrid-tools-public-display.php
- > /wp-content/plugins/label-grid-tools/public/templates/lite_release.php
- > /wp-content/plugins/label-grid-tools/public/templates/lite_gate.php
- > /wp-content/plugins/label-grid-tools/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 280× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/label-grid-tools/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/label-grid-tools/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php:25
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/label-grid-tools/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Format_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/label-grid-tools/vendor/monolog/monolog/src/Monolog/Handler/SqsHandler.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/label-grid-tools/vendor/monolog/monolog/src/Monolog/Formatter/ElasticsearchFormatter.php:21
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/label-grid-tools/vendor/htmlburger/carbon-fields/core/Field/Predefined_Options_Field.php:12
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/label-grid-tools/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/label-grid-tools/vendor/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/label-grid-tools/includes/class-labelgrid-tools.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/label-grid-tools/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
label-grid-tools/labelgrid-tools.php 77% from 13 tests
The primary PHP file in "LabelGrid Tools" version 1.3.48 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("label-grid-tools.php" instead of "labelgrid-tools.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin378,736 lines of code in 1,421 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 793 | 25,431 | 14,216 | 301,575 |
PHP | 434 | 8,002 | 20,135 | 49,259 |
JSON | 27 | 0 | 0 | 8,775 |
Markdown | 37 | 2,062 | 0 | 5,671 |
SVG | 28 | 25 | 26 | 4,412 |
CSS | 14 | 514 | 1,155 | 2,827 |
PO File | 26 | 819 | 1,020 | 2,202 |
TypeScript | 4 | 382 | 249 | 2,056 |
Sass | 48 | 339 | 0 | 1,769 |
YAML | 7 | 28 | 5 | 116 |
Bourne Shell | 1 | 12 | 0 | 37 |
XML | 1 | 0 | 0 | 27 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 40 | |
Traits | 10 | |
Classes | 330 | |
▷ Abstract classes | 18 | 5.45% |
▷ Concrete classes | 312 | 94.55% |
▷ Final classes | 30 | 9.62% |
Methods | 2,487 | |
▷ Static methods | 296 | 11.90% |
▷ Public methods | 1,929 | 77.56% |
▷ Protected methods | 344 | 13.83% |
▷ Private methods | 214 | 8.60% |
Functions | 287 | |
▷ Named functions | 98 | 34.15% |
▷ Anonymous functions | 189 | 65.85% |
Constants | 291 | |
▷ Global constants | 83 | 28.52% |
▷ Class constants | 208 | 71.48% |
▷ Public constants | 181 | 87.02% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.24MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
public/css/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
public/css/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
public/css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
public/images/artists_placeholder.png | 211.49KB | 131.57KB | ▼ 37.79% |