Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.22MB] [CPU: ▼25.04ms] Passed 4 tests
This is a short check of server-side resources used by Show-Hide / Collapse-Expand
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 24.92 ▼16.38 |
Dashboard /wp-admin | 3.08 ▼0.23 | 27.59 ▼27.24 |
Posts /wp-admin/edit.php | 3.22 ▼0.14 | 33.70 ▼24.82 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 69.62 ▼31.70 |
Media Library /wp-admin/upload.php | 3.16 ▼0.07 | 31.00 ▼4.69 |
Show-Hide / Collapse-Expand /wp-admin/tools.php?page=bg_show_hide | 3.06 | 26.53 |
Server storage [IO: ▲0.47MB] [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: 21 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
bg_shce_stickToBottom |
bg_shce_animationSpeed |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
bg_shce_preset1 |
theysaidso_admin_options |
bg_shce_effectsEnabled |
bg_shce_animationEffect |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Show-Hide / Collapse-Expand
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.53 ▼1.15 | 9.74 ▲7.79 | 39.94 ▼6.19 |
Dashboard /wp-admin | 2,221 ▲41 | 5.63 ▼0.09 | 90.56 ▼7.78 | 40.47 ▼2.92 |
Posts /wp-admin/edit.php | 2,126 ▲29 | 2.23 ▲0.23 | 34.01 ▼5.15 | 37.98 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,550 ▲3 | 17.61 ▼5.70 | 698.23 ▲2.48 | 39.37 ▼26.09 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.35 ▲0.14 | 115.33 ▲11.68 | 47.95 ▲0.33 |
Show-Hide / Collapse-Expand /wp-admin/tools.php?page=bg_show_hide | 928 | 2.26 | 28.87 | 30.12 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=bg_show_hide
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php
- > /wp-content/plugins/show-hidecollapse-expand/ErrorLogging.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 issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
show-hidecollapse-expand/bg_show_hide.php 77% from 13 tests
Analyzing the main PHP file in "Show-Hide / Collapse-Expand" version 1.3.0
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("show-hidecollapse-expand.php" instead of "bg_show_hide.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,913 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 166 | 53 | 672 |
SVG | 1 | 0 | 3 | 540 |
CSS | 2 | 36 | 18 | 470 |
JavaScript | 2 | 28 | 3 | 231 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 1 | 2.22% |
▷ Public methods | 43 | 95.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.44% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/tinymce-button.png | 3.11KB | 1.72KB | ▼ 44.50% |