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.03MB] [CPU: ▼5.74ms] Passed 4 tests
Server-side resources used by Responsive Block Visibility Swap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.45 ▼6.16 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.55 ▼1.63 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.58 ▲1.15 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.69 ▼16.32 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 38.12 ▲2.68 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
responsive_block_swap_version |
responsive_block_swap_installed_time |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Responsive Block Visibility Swap: 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,827 ▲81 | 13.40 ▼0.98 | 1.78 ▲0.14 | 43.38 ▼3.13 |
Dashboard /wp-admin | 2,203 ▲18 | 5.83 ▼0.03 | 99.63 ▼5.32 | 41.11 ▼0.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▲0.01 | 40.68 ▲3.52 | 36.91 ▲3.36 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 17.54 ▼0.16 | 637.85 ▼12.22 | 46.28 ▼26.40 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.01 | 94.63 ▼6.06 | 43.50 ▼7.74 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- responsive_block_swap_installed_time
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- responsive_block_swap_version
- db_upgraded
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/responsive-block-swap/responsive-block-swap.php:100
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: gutenberg, responsive, visibility, hide, block...
responsive-block-swap/responsive-block-swap.php Passed 13 tests
"Responsive Block Visibility Swap" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Easily hide and show Gutenberg blocks based on screen size for a responsive website layout.
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
Success! There were no dangerous files found in this plugin70 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 25 | 68 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin