Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.65ms] Passed 4 tests
Analyzing server-side resources used by Order Barcode for WC
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.55 ▲2.73 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.10 ▼1.26 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.83 ▲3.63 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.70 ▼7.37 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.97 ▲3.29 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Order Barcode for WC
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲95 | 13.66 ▼0.63 | 2.74 ▲0.69 | 43.83 ▲1.57 |
Dashboard /wp-admin | 2,249 ▲61 | 5.11 ▼0.79 | 119.31 ▲14.15 | 42.90 ▲3.28 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.30 ▲0.31 | 35.37 ▼7.77 | 34.12 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,708 ▲173 | 22.54 ▼0.60 | 618.77 ▼24.41 | 28.59 ▼27.94 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.40 ▲0.20 | 96.44 ▼15.41 | 40.70 ▼3.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DASPRiD\\Enum\\AbstractEnum' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/src/Common/CharacterSetEci.php:41
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Path\\OperationInterface' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/src/Renderer/Path/EllipticArc.php:6
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Path\\OperationInterface' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/src/Renderer/Path/Move.php:6
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Exception\\ExceptionInterface' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/src/Exception/WriterException.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/test/Integration/ImagickRenderingTest.php:23
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Image\\ImageBackEndInterface' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/src/Renderer/Image/ImagickImageBackEnd.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/test/Encoder/MaskUtilTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'DASPRiD\\Enum\\AbstractEnum' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/src/Common/ErrorCorrectionLevel.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/test/Common/ErrorCorrectionLevelTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'DASPRiD\\Enum\\AbstractEnum' not found in wp-content/plugins/order-barcode-for-wc/vendor/bacon/bacon-qr-code/src/Common/Mode.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Front End), #2 (Ticker Settings), #3 (Email Notice)
- Contributors: Contributors not specified
order-barcode-for-wc/order-barcode-for-wc.php 92% from 13 tests
The principal PHP file in "Order Barcode for WC" v. 0.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin8,038 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 1,625 | 2,006 | 7,580 |
JSON | 3 | 0 | 0 | 327 |
JavaScript | 4 | 12 | 21 | 62 |
Markdown | 1 | 9 | 0 | 30 |
CSS | 2 | 0 | 4 | 26 |
XML | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 70 | 100.00% |
▷ Final classes | 54 | 77.14% |
Methods | 470 | |
▷ Static methods | 96 | 20.43% |
▷ Public methods | 391 | 83.19% |
▷ Protected methods | 3 | 0.64% |
▷ Private methods | 76 | 16.17% |
Functions | 11 | |
▷ Named functions | 3 | 27.27% |
▷ Anonymous functions | 8 | 72.73% |
Constants | 94 | |
▷ Global constants | 14 | 14.89% |
▷ Class constants | 80 | 85.11% |
▷ Public constants | 12 | 15.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/bacon/bacon-qr-code/test/Integration/__snapshots__/files/ImagickRenderingTest__testIssue79__1.png | 8.17KB | 4.75KB | ▼ 41.88% |
vendor/bacon/bacon-qr-code/test/Integration/__snapshots__/files/ImagickRenderingTest__testGenericQrCode__1.png | 3.04KB | 1.72KB | ▼ 43.30% |