89% sidebars-for-helloelementortheme

Code Review | Sidebars for Hello Elementor Theme

WordPress plugin Sidebars for Hello Elementor Theme scored89%from 54 tests.

About plugin

  • Plugin page: sidebars-for-hell...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Feb 25, 2020
  • Latest release: Jan 26, 2022
  • Number of updates: 13
  • Update frequency: every 54.0 days
  • Top authors: mnbaaco (84.62%)ameralire (23.08%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /10,152 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Sidebars for Hello Elementor Theme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.49 ▼3.70
Dashboard /wp-admin3.32 ▲0.0244.95 ▼7.96
Posts /wp-admin/edit.php3.37 ▲0.0148.44 ▼0.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.68 ▼23.01
Media Library /wp-admin/upload.php3.25 ▲0.0134.61 ▲0.67

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Sidebars for Hello Elementor Theme
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.091.68 ▲0.0340.57 ▼1.87
Dashboard /wp-admin2,206 ▲184.87 ▼0.03107.88 ▲7.3242.14 ▼0.50
Posts /wp-admin/edit.php2,089 ▼01.96 ▼0.1640.12 ▼4.4534.74 ▼2.00
Add New Post /wp-admin/post-new.php1,517 ▼217.79 ▼5.33610.29 ▼52.1851.47 ▼11.22
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0093.48 ▼2.3840.84 ▼0.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: elementor extensions, elementor, sidebars, elementor addons, elementor modules

sidebars-for-helloelementortheme/sidebarshet.php 69% from 13 tests

The main file in "Sidebars for Hello Elementor Theme" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sidebars-for-helloelementortheme.php" instead of "sidebarshet.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin83 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171783

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 2.73MB with 1.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png530.56KB179.50KB▼ 66.17%
screenshot-4.png319.35KB144.17KB▼ 54.85%
screenshot-1.png542.61KB316.71KB▼ 41.63%
screenshot-3.png388.13KB175.25KB▼ 54.85%
screenshot-5.png1,015.62KB776.24KB▼ 23.57%