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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.22ms] Passed 4 tests
A check of server-side resources used by azurecurve Toggle Show/Hide
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.01 ▼1.94 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.40 ▼9.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 56.16 ▲13.46 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.48 ▼21.73 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.19 ▲8.46 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 3.21 | 31.76 |
Toggle Show/Hide /wp-admin/admin.php?page=azc-tsh | 3.21 | 33.47 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
azc_tsh_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by azurecurve Toggle Show/Hide
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲139 | 13.51 ▼1.08 | 8.35 ▲6.50 | 36.36 ▼10.18 |
Dashboard /wp-admin | 2,226 ▲52 | 5.60 ▼0.01 | 80.75 ▼20.02 | 71.75 ▲23.58 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.99 ▼0.03 | 38.83 ▼4.17 | 34.71 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,567 ▲30 | 23.26 ▲5.18 | 689.56 ▲74.28 | 54.26 ▼24.01 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.18 ▼0.01 | 92.99 ▼0.91 | 77.06 ▲32.72 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 861 | 2.00 | 23.64 | 27.47 |
Toggle Show/Hide /wp-admin/admin.php?page=azc-tsh | 1,341 | 1.69 | 22.63 | 42.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-toggle-showhide/includes/menu.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-toggle-showhide/includes/menu.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: wordpress, classicpress, toggle, index, showhide
azurecurve-toggle-showhide/azurecurve-toggle-showhide.php Passed 13 tests
"azurecurve Toggle Show/Hide" version 2.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
43 characters long description:
Toggle to show or hide a section of content
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 detected938 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 49 | 872 |
CSS | 2 | 0 | 4 | 52 |
JavaScript | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
32 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bullet_arrow_right.png | 0.31KB | 0.23KB | ▼ 25.55% |
images/action_forward_down.png | 0.47KB | 0.34KB | ▼ 26.67% |
images/blue_control_play_up.png | 0.74KB | 0.71KB | ▼ 2.92% |
images/minus.png | 0.08KB | 0.10KB | 0.00% |
images/bullet_go_up.png | 0.46KB | 0.38KB | ▼ 17.58% |