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.01MB] [CPU: ▼10.17ms] Passed 4 tests
Server-side resources used by Hide and show for devices
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.17 ▼4.41 |
Dashboard /wp-admin | 3.31 ▲0.01 | 56.82 ▲9.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 52.17 ▲3.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.32 ▼43.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.20 ▲3.59 |
Hide and show /wp-admin/admin.php?page=wp-hide-and-shows-settings | 3.20 | 34.04 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 3.20 | 36.96 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Hide and show for devices: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲93 | 14.74 ▲0.33 | 1.85 ▼0.40 | 45.76 ▼4.12 |
Dashboard /wp-admin | 2,231 ▲42 | 4.88 ▲0.01 | 111.64 ▲1.22 | 55.67 ▲13.71 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.03 ▲0.00 | 42.58 ▲7.88 | 43.02 ▲8.83 |
Add New Post /wp-admin/post-new.php | 1,551 ▲31 | 23.28 ▼0.14 | 711.48 ▼108.47 | 61.80 ▲4.23 |
Media Library /wp-admin/upload.php | 1,416 ▲34 | 4.22 ▲0.07 | 109.08 ▼5.07 | 52.52 ▲4.38 |
Hide and show /wp-admin/admin.php?page=wp-hide-and-shows-settings | 827 | 2.18 | 25.00 | 33.46 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 820 | 2.17 | 29.55 | 37.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/show-for-device/wp-show-for-device.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% 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:
- Requires php: Version not formatted correctly
show-for-device/wp-show-for-device.php 85% from 13 tests
The entry point to "Hide and show for devices" version 2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 298 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("show-for-device.php" instead of "wp-show-for-device.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin733 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 178 | 654 | 728 |
CSS | 1 | 1 | 2 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.90 |
Average class complexity | 123.00 |
▷ Minimum class complexity | 123.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 9 | 27.27% |
▷ Public methods | 31 | 93.94% |
▷ Protected methods | 2 | 6.06% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin