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.06MB] [CPU: ▼9.49ms] Passed 4 tests
Analyzing server-side resources used by Demo Bar- Best Tool To Showcase Website Demos With Styles
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.89 ▼4.26 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.85 ▼3.32 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.33 ▼1.56 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 86.73 ▼28.80 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.26 ▲8.43 |
Add Site /wp-admin/post-new.php?post_type=dbsite | 3.33 | 47.01 |
Settings /wp-admin/edit.php?post_type=dbsite&page=demo-bar | 3.33 | 41.73 |
Sites /wp-admin/edit.php?post_type=dbsite | 3.34 | 40.86 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
demobar_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Demo Bar- Best Tool To Showcase Website Demos With Styles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.72 ▲0.16 | 1.88 ▼0.13 | 40.39 ▼6.59 |
Dashboard /wp-admin | 2,231 ▲51 | 5.56 ▼0.03 | 84.90 ▼12.40 | 38.88 ▼4.86 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 2.01 ▲0.05 | 36.90 ▼3.63 | 37.93 ▲2.75 |
Add New Post /wp-admin/post-new.php | 1,567 ▲39 | 23.27 ▲0.16 | 700.04 ▲57.95 | 63.61 ▲13.66 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.14 ▲0.08 | 113.30 ▼0.07 | 49.32 ▲3.75 |
Add Site /wp-admin/post-new.php?post_type=dbsite | 1,511 | 2.62 | 56.70 | 35.18 |
Settings /wp-admin/edit.php?post_type=dbsite&page=demo-bar | 1,321 | 3.92 | 65.52 | 27.10 |
Sites /wp-admin/edit.php?post_type=dbsite | 1,116 | 1.99 | 30.49 | 30.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/demo-bar/tests/bootstrap.php on line 12
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/demo-bar/tests/bootstrap.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/demo-bar/templates/switcher.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/demo-bar/tests/test-post-types.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/demo-bar/templates/admin/admin-sidebar.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: demo, bar
demo-bar/demo-bar.php 85% from 13 tests
The main PHP file in "Demo Bar- Best Tool To Showcase Website Demos With Styles" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,731 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 4 | 18 | 2,224 |
PHP | 16 | 139 | 478 | 763 |
SVG | 1 | 0 | 0 | 655 |
JavaScript | 2 | 23 | 9 | 89 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 14 | 28.57% |
▷ Public methods | 45 | 91.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.16% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg.png | 5.28KB | 5.17KB | ▼ 2.13% |