Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php+778
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.69MB] [CPU: ▼58.79ms] Passed 4 tests
Analyzing server-side resources used by Responsive Select Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.16 | 6.14 ▼43.26 |
Dashboard /wp-admin | 2.32 ▼0.99 | 8.30 ▼45.97 |
Posts /wp-admin/edit.php | 2.32 ▼1.04 | 9.15 ▼45.58 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.57 | 7.52 ▼100.34 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 9.86 ▼28.23 |
Responsive Select /wp-admin/themes.php?page=responsive-select | 2.33 | 7.67 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Select Menu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲125 | 13.43 ▼0.93 | 9.01 ▲6.80 | 43.76 ▼1.10 |
Dashboard /wp-admin | 2,199 ▲25 | 5.65 ▼0.03 | 97.25 ▲5.88 | 43.42 ▼5.15 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.01 | 35.49 ▼6.19 | 33.61 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.39 ▼0.18 | 691.11 ▲14.10 | 52.19 ▼10.73 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.24 ▲0.00 | 99.66 ▼11.90 | 45.99 ▲0.78 |
Responsive Select /wp-admin/themes.php?page=responsive-select | 1,343 | 2.03 | 47.39 | 83.24 |
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
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php+778
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=responsive-select
- > Warning in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php+778
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
SRP 50% 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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php on line 778
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php on line 778
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php:43
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/themes.php?page=responsive-select
- > Network (severe)
https://0.s3.envato.com/files/56692616/FlatSkinPack_CodeCanyonPackaging.png - Failed to load resource: the server responded with a status of 403 ()
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Responsive select menu on the iPhone/iPod Touch), #2 (Responsive select menu Control Panel)
responsive-select-menu/responsive-select-menu.php Passed 13 tests
The main file in "Responsive Select Menu" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Turn your menu into a select box at small viewport sizes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,716 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 450 | 100 | 998 |
CSS | 1 | 109 | 17 | 580 |
JavaScript | 1 | 26 | 17 | 80 |
Markdown | 1 | 48 | 0 | 58 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 54.67 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sparkoptions/images/sslogo.png | 0.87KB | 1.45KB | 0.00% |
sparkoptions/images/toolbox.png | 1.04KB | 0.13KB | ▼ 87.08% |
sparkoptions/images/social_media_icons/facebook.png | 1.08KB | 0.21KB | ▼ 80.62% |
sparkoptions/images/social_media_icons/dribbble.png | 1.34KB | 0.50KB | ▼ 62.54% |
screenshot-2.png | 174.36KB | 47.32KB | ▼ 72.86% |