99% add-multiple-sidebar

Code Review | Add Multiple Sidebar

WordPress plugin Add Multiple Sidebar scored 99% from 54 tests.

About plugin

  • Plugin page: add-multiple-sidebar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.1
  • WordPress version: 5.9.2
  • First release: Jan 28, 2019
  • Latest release: Apr 28, 2021
  • Number of updates: 7
  • Update frequency: every 117.4 days
  • Top authors: utsav72640 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 896 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼303.20ms] Passed 4 tests

Server-side resources used by Add Multiple Sidebar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0458.59 ▲9.79
Dashboard /wp-admin3.44 ▲0.0433.91 ▲0.79
Posts /wp-admin/edit.php3.67 ▲0.0342.36 ▲1.10
Add New Post /wp-admin/post-new.php6.91 ▼0.0690.62 ▼1,216.87
Media Library /wp-admin/upload.php3.32 ▲0.0327.36 ▲2.19

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Multiple Sidebar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5116.20 ▲0.266.04 ▼0.402.58 ▼0.55
Dashboard /wp-admin2,895 ▲346.17 ▲0.11120.12 ▼15.08159.34 ▼1.27
Posts /wp-admin/edit.php2,688 ▼03.24 ▼0.0162.21 ▼1.93136.31 ▼4.28
Add New Post /wp-admin/post-new.php1,668 ▲718.38 ▼4.35386.96 ▼27.79165.19 ▲12.58
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.02145.65 ▲11.88184.35 ▲1.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: These screenshots require images: #1 (Add Multiple Sidebar Use Your Sidebar), #2 (Add Sidebar Name), #3 (Delete Your Sidebar)
You can take inspiration from this readme.txt

add-multiple-sidebar/sidebar.php 92% from 13 tests

The principal PHP file in "Add Multiple Sidebar" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-multiple-sidebar.php" instead of "sidebar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin178 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11338102
JavaScript15947
PO File14524
CSS1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png9.31KB3.49KB▼ 62.54%
screenshot-1.png61.13KB18.02KB▼ 70.52%
screenshot-2.png5.87KB2.31KB▼ 60.66%