Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▼0.62ms] Passed 4 tests
A check of server-side resources used by Bug Library
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.60 | 45.91 ▲4.33 |
Dashboard /wp-admin | 3.91 ▲0.56 | 51.48 ▼10.25 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 51.39 ▲4.36 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 111.48 ▲10.09 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 37.32 ▼0.93 |
General Options /wp-admin/edit.php?post_type=bug-library-bugs&page=bug-library-general-options | 3.77 | 41.28 |
Bugs /wp-admin/edit.php?post_type=bug-library-bugs | 3.89 | 42.18 |
Status /wp-admin/edit-tags.php?taxonomy=bug-library-status&post_type=bug-library-bugs | 3.79 | 40.25 |
Products /wp-admin/edit-tags.php?taxonomy=bug-library-products&post_type=bug-library-bugs | 3.79 | 41.82 |
Stylesheet /wp-admin/edit.php?post_type=bug-library-bugs&page=bug-library-stylesheet | 3.77 | 37.12 |
Types /wp-admin/edit-tags.php?taxonomy=bug-library-types&post_type=bug-library-bugs | 3.79 | 42.64 |
Priority /wp-admin/edit-tags.php?taxonomy=bug-library-priority&post_type=bug-library-bugs | 3.79 | 37.93 |
Instructions /wp-admin/edit.php?post_type=bug-library-bugs&page=bug-library-instructions | 3.77 | 37.11 |
Add New /wp-admin/post-new.php?post_type=bug-library-bugs | 3.99 | 58.84 |
Server storage [IO: ▲1.15MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
BugLibraryGeneral |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Bug Library
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲113 | 14.35 ▼0.06 | 1.76 ▲0.09 | 47.64 ▲0.13 |
Dashboard /wp-admin | 2,274 ▲94 | 5.72 ▲0.05 | 85.50 ▼12.72 | 40.48 ▼1.22 |
Posts /wp-admin/edit.php | 2,180 ▲80 | 2.07 ▲0.08 | 37.50 ▼3.83 | 32.41 ▼4.41 |
Add New Post /wp-admin/post-new.php | 1,579 ▲31 | 23.31 ▲5.03 | 592.56 ▼56.87 | 50.26 ▼17.70 |
Media Library /wp-admin/upload.php | 1,476 ▲79 | 4.29 ▲0.05 | 95.01 ▲2.98 | 40.80 ▲0.59 |
General Options /wp-admin/edit.php?post_type=bug-library-bugs&page=bug-library-general-options | 1,593 | 2.37 | 41.64 | 32.60 |
Bugs /wp-admin/edit.php?post_type=bug-library-bugs | 1,274 | 2.03 | 33.18 | 32.59 |
Status /wp-admin/edit-tags.php?taxonomy=bug-library-status&post_type=bug-library-bugs | 1,445 | 2.36 | 30.18 | 30.58 |
Products /wp-admin/edit-tags.php?taxonomy=bug-library-products&post_type=bug-library-bugs | 1,445 | 2.27 | 29.61 | 31.54 |
Stylesheet /wp-admin/edit.php?post_type=bug-library-bugs&page=bug-library-stylesheet | 998 | 2.21 | 36.77 | 31.74 |
Types /wp-admin/edit-tags.php?taxonomy=bug-library-types&post_type=bug-library-bugs | 1,448 | 2.36 | 29.55 | 30.44 |
Priority /wp-admin/edit-tags.php?taxonomy=bug-library-priority&post_type=bug-library-bugs | 1,442 | 2.34 | 28.03 | 27.04 |
Instructions /wp-admin/edit.php?post_type=bug-library-bugs&page=bug-library-instructions | 997 | 2.23 | 37.60 | 24.53 |
Add New /wp-admin/post-new.php?post_type=bug-library-bugs | 2,961 | 8.10 | 178.51 | 79.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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 | 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bug-library/captcha/easycaptcha.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bug-library/single-bug-library-bugs.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bug-library/bug-library.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/bug-library/submitnewissue.php:2
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Bug Listing), #2 (Form to report new issues)
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
bug-library/bug-library.php Passed 13 tests
Analyzing the main PHP file in "Bug Library" version 2.1
54 characters long description:
Display bug manager on pages with a variety of options
Code Analysis 97% 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 plugin6,938 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 962 | 1,255 | 5,243 |
JavaScript | 3 | 199 | 103 | 810 |
CSS | 4 | 96 | 73 | 476 |
PO File | 1 | 164 | 171 | 387 |
XML | 1 | 1 | 9 | 22 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 214.20 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 400.00 |
Average method complexity | 8.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 1 | 0.68% |
▷ Public methods | 148 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 25 | |
▷ Global constants | 25 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
17 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 3.67KB | 1.93KB | ▼ 47.53% |
css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.12KB | 0.16KB | 0.00% |
css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.25KB | 0.15KB | ▼ 37.45% |
css/ui-lightness/images/ui-icons_228ef1_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |