90% stag-custom-sidebars

Code Review | Stag Custom Sidebars

WordPress plugin Stag Custom Sidebars scored 90% from 54 tests.

About plugin

  • Plugin page: stag-custom-sidebars
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Oct 23, 2013
  • Latest release: Feb 1, 2021
  • Number of updates: 39
  • Update frequency: every 68.2 days
  • Top authors: mauryaratan (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

4,000+ active / 65,426 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.85ms] Passed 4 tests

An overview of server-side resources used by Stag Custom Sidebars
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.90 ▼17.80
Dashboard /wp-admin3.36 ▲0.0547.16 ▼1.51
Posts /wp-admin/edit.php3.41 ▲0.0545.95 ▲1.20
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.09 ▼1.30
Media Library /wp-admin/upload.php3.28 ▲0.0547.93 ▲17.36

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Stag Custom Sidebars: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4613.17 ▼1.131.67 ▼1.4442.25 ▼26.74
Dashboard /wp-admin2,209 ▲214.82 ▼1.05111.31 ▼5.7442.68 ▼3.43
Posts /wp-admin/edit.php2,095 ▲32.01 ▼0.0239.54 ▲0.0434.33 ▼2.40
Add New Post /wp-admin/post-new.php1,536 ▲523.03 ▼0.45691.05 ▲45.3754.01 ▲6.07
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.03102.04 ▼2.5544.69 ▼2.51

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: codestag, sidebars, custom-sidebars, mauryaratan, shortcodes...

stag-custom-sidebars/stag-custom-sidebars.php 92% from 13 tests

The principal PHP file in "Stag Custom Sidebars" v. 1.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin429 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP278165223
CSS2270147
CoffeeScript112058
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected