Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.74MB] [CPU: ▼3.82ms] Passed 4 tests
An overview of server-side resources used by WpBom
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 38.98 ▼3.56 |
Dashboard /wp-admin | 4.08 ▲0.73 | 48.85 ▼9.99 |
Posts /wp-admin/edit.php | 4.16 ▲0.81 | 52.22 ▲7.04 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.78 | 84.10 ▼7.92 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 40.34 ▲6.18 |
Server storage [IO: ▲4.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 466 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WpBom
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲45 | 14.21 ▼0.51 | 1.72 ▼0.24 | 41.57 ▲5.27 |
Dashboard /wp-admin | 2,222 ▲42 | 5.70 ▲0.03 | 89.42 ▲1.59 | 39.44 ▼4.99 |
Posts /wp-admin/edit.php | 2,124 ▲45 | 2.06 ▲0.09 | 39.40 ▲4.43 | 35.10 ▲0.31 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.25 ▲0.09 | 688.87 ▲38.41 | 53.11 ▲4.41 |
Media Library /wp-admin/upload.php | 1,424 ▲30 | 4.25 ▲0.08 | 98.04 ▼11.26 | 46.22 ▼0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+312
call_user_func_array() expects parameter 1 to be a valid callback, class 'Sepbit\WpBom\Controllers\DependencyTrackController' not found
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpbom/vendor/cmb2/cmb2/apigen/hook-docs.php
- 57× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wpbom/vendor/cmb2/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wpbom/vendor/cmb2/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wpbom/vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Warning
file_get_contents(/Users/JT/Sites/wpengine/api/tree.html): failed to open stream: No such file or directory in wp-content/plugins/wpbom/vendor/cmb2/cmb2/apigen/hook-docs.php on line 221
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/wpbom/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/wpbom/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wpbom/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wpbom/vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wpbom/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/wpbom/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: bom, cyclonedx, dependency track
wpbom/wpbom.php 92% from 13 tests
The entry point to "WpBom" version 1.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Git Repository: There should be no Git repositories present in your plugin
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin66,862 lines of code in 281 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 86 | 3,383 | 7,325 | 12,576 |
JSON | 8 | 0 | 0 | 6,816 |
CSS | 14 | 357 | 1,206 | 5,004 |
XML | 3 | 0 | 0 | 4,505 |
JavaScript | 14 | 531 | 774 | 2,728 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 11 | 335 | 0 | 1,063 |
Bourne Shell | 4 | 67 | 45 | 209 |
YAML | 2 | 11 | 6 | 193 |
diff | 2 | 1 | 68 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 94 | |
▷ Abstract classes | 12 | 12.77% |
▷ Concrete classes | 82 | 87.23% |
▷ Final classes | 0 | 0.00% |
Methods | 915 | |
▷ Static methods | 153 | 16.72% |
▷ Public methods | 779 | 85.14% |
▷ Protected methods | 129 | 14.10% |
▷ Private methods | 7 | 0.77% |
Functions | 38 | |
▷ Named functions | 37 | 97.37% |
▷ Anonymous functions | 1 | 2.63% |
Constants | 16 | |
▷ Global constants | 10 | 62.50% |
▷ Class constants | 6 | 37.50% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
22 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/sort.png | 0.17KB | 0.12KB | ▼ 30.41% |
vendor/cmb2/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
vendor/cmb2/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-cleaner.png | 0.12KB | 0.08KB | ▼ 33.33% |