Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.47ms] Passed 4 tests
An overview of server-side resources used by Register Sidebars By Admin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 36.44 ▲14.37 |
Dashboard /wp-admin | 3.11 ▲0.05 | 46.65 ▼3.06 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 48.36 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 91.36 ▼564.87 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 35.83 ▲0.41 |
Register Sidebars By Admin /wp-admin/themes.php?page=dynamic-register-sidebars-by-admin-page | 3.02 | 28.61 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Register Sidebars By Admin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 15.97 ▲0.40 | 7.71 ▼2.39 | 47.71 ▲1.29 |
Dashboard /wp-admin | 2,977 ▲40 | 5.91 ▼0.09 | 135.12 ▼25.74 | 120.06 ▼5.55 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.70 ▲0.00 | 71.55 ▲3.01 | 90.49 ▼12.21 |
Add New Post /wp-admin/post-new.php | 1,610 ▲29 | 18.58 ▼1.54 | 380.03 ▼13.52 | 109.42 ▼2.49 |
Media Library /wp-admin/upload.php | 1,820 ▲13 | 5.04 ▲0.03 | 152.41 ▼4.51 | 124.36 ▲1.82 |
Register Sidebars By Admin /wp-admin/themes.php?page=dynamic-register-sidebars-by-admin-page | 1,118 | 2.09 | 61.00 | 78.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/register-sidebar-by-admin/register-sidebar-by-admin.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (After activate this plugin go to plugin settings by click on "settings". You can also find the plugin settings by 'Appearance > Register Sidebars' menu in your WordPress backend like as above screen.), #2 (Now, you can register sidebars like as above screen.), #3 (Here, you would be able to reivew your registered siderbars.), #4 (You can display use sidebar key (show in red box) like as above screen.)
register-sidebar-by-admin/register-sidebar-by-admin.php Passed 13 tests
The main file in "Register Sidebars By Admin" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Dynamic sidebar manage by wordpress admin panel
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin276 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 16 | 212 |
CSS | 1 | 1 | 0 | 33 |
JavaScript | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 6.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 8 | |
▷ Static methods | 2 | 25.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
4 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 35.78KB | 18.13KB | ▼ 49.34% |
screenshot-3.png | 65.05KB | 31.53KB | ▼ 51.53% |
screenshot-2.png | 40.69KB | 20.34KB | ▼ 50.00% |
screenshot-4.png | 35.92KB | 18.19KB | ▼ 49.36% |