89% evolution-sidebar-box

Code Review | AH Sidebar Box

WordPress plugin AH Sidebar Box scored89%from 54 tests.

About plugin

  • Plugin page: evolution-sidebar...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2013
  • Latest release: Sep 23, 2017
  • Number of updates: 108
  • Update frequency: every 15.0 days
  • Top authors: AHecht (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,018 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.43ms] Passed 4 tests

Analyzing server-side resources used by AH Sidebar Box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.36 ▼1.58
Dashboard /wp-admin3.35 ▲0.0145.29 ▼14.74
Posts /wp-admin/edit.php3.41 ▲0.0452.04 ▼0.81
Add New Post /wp-admin/post-new.php5.94 ▲0.0496.63 ▲6.00
Media Library /wp-admin/upload.php3.28 ▲0.0435.61 ▲3.43

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by AH Sidebar Box
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.55 ▼0.831.57 ▼0.2639.18 ▼0.07
Dashboard /wp-admin2,206 ▲185.83 ▲0.91100.21 ▼10.2039.50 ▼2.41
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0140.53 ▼2.4235.49 ▲0.51
Add New Post /wp-admin/post-new.php1,542 ▲918.31 ▼4.69597.58 ▼38.4348.14 ▼3.59
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.08102.80 ▼1.6342.56 ▼5.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_ah_sidebar_box
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt is a good inspiration

evolution-sidebar-box/ah-sidebar-box.php 77% from 13 tests

The primary PHP file in "AH Sidebar Box" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("evolution-sidebar-box.php" instead of "ah-sidebar-box.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin328 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File1171654

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions583.33%
▷ Anonymous functions116.67%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected