Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.30ms] Passed 4 tests
A check of server-side resources used by Chimney Rock Order Barcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.05 ▼2.75 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.19 ▼12.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.59 ▲3.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.33 ▼16.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.11 ▲3.52 |
Server storage [IO: ▲2.26MB] [DB: ▲0.31MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
crm_order_barcodes_version |
can_compress_scripts |
Browser metrics Passed 4 tests
Chimney Rock Order Barcodes: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲30 | 14.45 ▼0.26 | 1.64 ▼0.06 | 37.30 ▼6.26 |
Dashboard /wp-admin | 2,200 ▲20 | 5.64 ▲0.08 | 94.23 ▲0.93 | 43.42 ▼3.57 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.01 ▼0.01 | 38.71 ▲2.52 | 37.54 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.28 ▲0.07 | 672.17 ▲50.57 | 48.23 ▼0.73 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.18 ▼0.01 | 97.70 ▲3.40 | 42.94 ▲0.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/src/svg-scanner.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\TagInterface' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/src/data/AllowedTags.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/AllowedTagsTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\AttributeInterface' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/src/data/AllowedAttributes.php:12
- > PHP Fatal error
Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\TagInterface' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/Fixtures/TestAllowedTags.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/SubjectTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\AttributeInterface' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/Fixtures/TestAllowedAttributes.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/SanitizerTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/AllowedAttributesTest.php:10
- > PHP Warning
array_values() expects parameter 1 to be array, null given in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/src/svg-scanner.php on line 70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Contributors: Plugin contributors not specified
chimney-rock-order-barcodes/functions.php 85% from 13 tests
The main PHP script in "Chimney Rock Order Barcodes" version 1.0.10 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("chimney-rock-order-barcodes.php" instead of "functions.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin106,301 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 24 | 20,040 | 8 | 100,749 |
PHP | 33 | 558 | 1,118 | 5,374 |
JSON | 1 | 0 | 0 | 55 |
Markdown | 1 | 43 | 0 | 49 |
XML | 3 | 5 | 0 | 39 |
YAML | 2 | 12 | 5 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 31.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 543.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 207 | |
▷ Static methods | 29 | 14.01% |
▷ Public methods | 117 | 56.52% |
▷ Protected methods | 21 | 10.14% |
▷ Private methods | 69 | 33.33% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin