Benchmarks
Plugin footprint 65% 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.19MB] [CPU: ▼30.28ms] Passed 4 tests
An overview of server-side resources used by bread
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 44.47 ▲6.66 |
Dashboard /wp-admin | 3.77 ▲0.42 | 27.51 ▼38.53 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 28.73 ▼19.10 |
Add New Post /wp-admin/post-new.php | 3.77 ▼2.12 | 30.85 ▼56.66 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 26.74 ▼6.84 |
Server storage [IO: ▲27.50MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Try to limit filesystem usage to 25MB (currently using 27.50MB)
Filesystem: 1,014 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
bmlt_meeting_list_options |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by bread
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.36 ▲0.37 | 1.78 ▲0.18 | 43.74 ▲2.42 |
Dashboard /wp-admin | 2,208 ▲27 | 5.49 ▼0.22 | 85.79 ▼10.83 | 38.15 ▼0.85 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▼0.03 | 33.94 ▼0.78 | 34.23 ▼4.24 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.10 ▼0.18 | 668.53 ▼33.15 | 52.32 ▼0.91 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.17 ▼0.04 | 94.87 ▼0.36 | 40.52 ▼2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/bread/bmlt-meeting-list.php+2635
Undefined index: both
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- bmlt_meeting_list_options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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 0% 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
- 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/bread/partials/_front_page_setup.php
- > /wp-content/plugins/bread/partials/_custom_section_setup.php
- > /wp-content/plugins/bread/partials/_helpers.php
- > /wp-content/plugins/bread/partials/_layout_setup.php
- > /wp-content/plugins/bread/partials/_backup_restore_setup.php
- > /wp-content/plugins/bread/bread.php
- > /wp-content/plugins/bread/partials/_help_videos.php
- > /wp-content/plugins/bread/partials/_bmlt_server_setup.php
- > /wp-content/plugins/bread/partials/_meetings_setup.php
- > /wp-content/plugins/bread/index.php
- 235× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/bread/mpdf/vendor/mpdf/mpdf/src/Barcode/EanUpc.php:11
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/bread/mpdf/vendor/setasign/fpdi/src/PdfParser/Type/PdfNumeric.php:16
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/bread/mpdf/vendor/mpdf/mpdf/src/Http/Exception/RequestException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/bread/mpdf/vendor/mpdf/mpdf/src/Tag/Legend.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\SubstituteTag' not found in wp-content/plugins/bread/mpdf/vendor/mpdf/mpdf/src/Tag/Ttz.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/bread/mpdf/vendor/mpdf/mpdf/src/Barcode/Rm4Scc.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/bread/mpdf/vendor/mpdf/mpdf/src/Tag/BlockTag.php:10
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/bread/mpdf/vendor/mpdf/mpdf/src/Tag/Mark.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\TTFontFile' not found in wp-content/plugins/bread/mpdf/vendor/mpdf/mpdf/src/TTFontFileAnalysis.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/bread/mpdf/vendor/mpdf/mpdf/src/Tag/Samp.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: meeting list, na, bmlt, narcotics anonymous
bread/bmlt-meeting-list.php 92% from 13 tests
The main file in "bread" v. 2.7.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bread.php" instead of "bmlt-meeting-list.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin88,959 lines of code in 530 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 457 | 12,041 | 12,956 | 81,311 |
JavaScript | 11 | 482 | 237 | 3,177 |
CSS | 8 | 104 | 93 | 1,647 |
Markdown | 17 | 505 | 0 | 1,509 |
JSON | 12 | 16 | 0 | 806 |
YAML | 13 | 85 | 6 | 287 |
XML | 5 | 15 | 0 | 128 |
HTML | 3 | 0 | 0 | 85 |
SVG | 3 | 0 | 0 | 6 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 7,021)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 54.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,021.00 |
Average method complexity | 12.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 59 | |
Interfaces | 20 | |
Traits | 8 | |
Classes | 317 | |
▷ Abstract classes | 9 | 2.84% |
▷ Concrete classes | 308 | 97.16% |
▷ Final classes | 13 | 4.22% |
Methods | 1,675 | |
▷ Static methods | 148 | 8.84% |
▷ Public methods | 1,465 | 87.46% |
▷ Protected methods | 56 | 3.34% |
▷ Private methods | 154 | 9.19% |
Functions | 36 | |
▷ Named functions | 8 | 22.22% |
▷ Anonymous functions | 28 | 77.78% |
Constants | 435 | |
▷ Global constants | 5 | 1.15% |
▷ Class constants | 430 | 98.85% |
▷ Public constants | 430 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.70MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/banner_rails.png | 3.39KB | 0.14KB | ▼ 95.97% |
mpdf/vendor/mpdf/qrcode/tests/reference/LOREM-IPSUM-2019-L-250-noborder.png | 183.72KB | 0.33KB | ▼ 99.82% |
css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
css/images/ui-bg_diagonals-thick_20_e69700_40x40.png | 0.41KB | 0.15KB | ▼ 62.35% |
css/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png | 0.33KB | 0.10KB | ▼ 70.47% |