Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.93ms] Passed 4 tests
An overview of server-side resources used by Bulgarisation for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.79 ▼5.62 |
Dashboard /wp-admin | 3.32 ▼0.02 | 43.75 ▼16.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.71 ▼0.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.09 ▼8.89 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.26 ▼1.06 |
Server storage [IO: ▲12.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 782 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Bulgarisation for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲57 | 14.67 ▼0.07 | 1.92 ▲0.09 | 35.66 ▼8.06 |
Dashboard /wp-admin | 2,199 ▲28 | 5.59 ▼0.02 | 92.61 ▼3.38 | 41.59 ▼1.94 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.06 | 39.09 ▼3.04 | 37.48 ▲3.52 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.22 ▼0.11 | 672.82 ▲23.67 | 54.49 ▼0.54 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.17 ▲0.00 | 95.28 ▼6.22 | 42.21 ▼2.77 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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 0% 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 fix the following items
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/masterminds/html5/bin/entities.php
- > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/makefont.php
- > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto7.php
- 240× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QRImage' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/examples/QRImageWithText.php:26
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/dompdf/dompdf/src/FrameDecorator/Text.php:18
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QROutputAbstract' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/src/Output/QRString.php:25
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/public/qrcode.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\Block' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/dompdf/dompdf/src/FrameDecorator/TableCell.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\Block' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/dompdf/dompdf/src/FrameReflower/TableCell.php:18
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/phenx/php-svg-lib/src/Svg/Tag/Image.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/tests/Data/DatainterfaceTestAbstract.php:26
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdi/src/PdfParser/Filter/Lzw.php:16
- > PHP Warning
require_once(wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/examples/fpdf.php on line 7
- > 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 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please describe screenshot #9 in bulgarisation-for-woocommerce/assets to your readme.txt
bulgarisation-for-woocommerce/bulgarisation-for-woocommerce.php 69% from 13 tests
"Bulgarisation for WooCommerce" version 3.0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 189 characters long)
- Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.4.0")
- 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
- Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "7.3.0")
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 plugin72,519 lines of code in 626 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 473 | 14,187 | 27,828 | 62,468 |
HTML | 61 | 98 | 0 | 3,411 |
Markdown | 21 | 648 | 0 | 2,376 |
JSON | 19 | 4 | 0 | 1,514 |
CSS | 10 | 202 | 53 | 1,354 |
PO File | 1 | 351 | 454 | 914 |
YAML | 8 | 62 | 8 | 241 |
XML | 5 | 2 | 0 | 100 |
reStructuredText | 1 | 96 | 139 | 97 |
JavaScript | 25 | 2 | 58 | 35 |
SVG | 2 | 0 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 811.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 97 | |
Interfaces | 28 | |
Traits | 6 | |
Classes | 395 | |
▷ Abstract classes | 22 | 5.57% |
▷ Concrete classes | 373 | 94.43% |
▷ Final classes | 18 | 4.83% |
Methods | 3,582 | |
▷ Static methods | 407 | 11.36% |
▷ Public methods | 2,814 | 78.56% |
▷ Protected methods | 631 | 17.62% |
▷ Private methods | 137 | 3.82% |
Functions | 167 | |
▷ Named functions | 36 | 21.56% |
▷ Anonymous functions | 131 | 78.44% |
Constants | 388 | |
▷ Global constants | 5 | 1.29% |
▷ Class constants | 383 | 98.71% |
▷ Public constants | 371 | 96.87% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.56MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |
(invalid) dist/images/sprite.png | 0.00KB | 0.00KB | 0.00% |
app/Admin/Tabs/Econt_Tab/images/econt-help.png | 22.46KB | 12.52KB | ▼ 44.26% |
vendor/chillerlan/php-qrcode/examples/example_image.png | 2.23KB | 1.09KB | ▼ 50.94% |
dist/images/question-icon.e859d4d0a0.png | 2.04KB | 1.68KB | ▼ 17.92% |