Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-responsive-demo-switch-bar/wp-demobar.php+140
Undefined property: WP_Responsive_Demo_Switch_Bar::$version
Server metrics [RAM: ▼1.66MB] [CPU: ▼54.41ms] Passed 4 tests
An overview of server-side resources used by WP Responsive Demo Switch Bar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.33 ▼1.13 | 5.96 ▼36.21 |
Dashboard /wp-admin | 2.35 ▼0.99 | 7.83 ▼57.12 |
Posts /wp-admin/edit.php | 2.35 ▼1.00 | 8.19 ▼36.31 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.53 | 6.80 ▼88.01 |
Media Library /wp-admin/upload.php | 2.35 ▼0.88 | 7.25 ▼31.36 |
Demobar Settings /wp-admin/options-general.php?page=wpdemobar_settings | 2.35 | 7.44 |
Sites /wp-admin/edit.php?post_type=demosites | 2.35 | 9.36 |
Add Site /wp-admin/post-new.php?post_type=demosites | 2.35 | 7.43 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Responsive Demo Switch Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲80 | 13.75 ▼0.44 | 1.74 ▼0.36 | 44.07 ▼1.01 |
Dashboard /wp-admin | 2,254 ▲63 | 5.05 ▲0.11 | 102.36 ▼1.45 | 42.45 ▲0.51 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.28 ▲0.13 | 40.87 ▲6.92 | 34.61 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,561 ▲42 | 18.75 ▼4.55 | 604.12 ▼96.19 | 36.03 ▼16.27 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.41 ▲0.20 | 95.75 ▼9.98 | 40.31 ▼3.24 |
Demobar Settings /wp-admin/options-general.php?page=wpdemobar_settings | 1,316 | 3.96 | 63.97 | 33.11 |
Sites /wp-admin/edit.php?post_type=demosites | 1,099 | 2.25 | 32.01 | 29.37 |
Add Site /wp-admin/post-new.php?post_type=demosites | 1,864 | 4.16 | 76.83 | 32.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-responsive-demo-switch-bar/wp-demobar.php+140
Undefined property: WP_Responsive_Demo_Switch_Bar::$version
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=demosites
- > Notice in wp-content/plugins/wp-responsive-demo-switch-bar/wp-demobar.php+140
Undefined property: WP_Responsive_Demo_Switch_Bar::$version
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=demosites
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: theme demo switcher, responsive bar, theme demo bar, responsive test tool, wordpress theme switcher...
wp-responsive-demo-switch-bar/wp-demobar.php 77% from 13 tests
The entry point to "WP Responsive Demo Switch Bar" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "4.4")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-responsive-demo-switch-bar.php" instead of "wp-demobar.php")
- 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
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
There were no executable files found in this plugin4,444 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 87 | 16 | 2,836 |
PHP | 3 | 173 | 262 | 808 |
SVG | 1 | 0 | 0 | 640 |
JavaScript | 2 | 27 | 17 | 160 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 4 | 12.50% |
▷ Public methods | 30 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.25% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bg.png | 20.87KB | 22.10KB | 0.00% |