10% multiple-sidebars

Code Review | Multiple Sidebars

WordPress plugin Multiple Sidebars scored10%from 54 tests.

About plugin

  • Plugin page: multiple-sidebars
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2012
  • Latest release: Apr 8, 2014
  • Number of updates: 59
  • Update frequency: every 13.0 days
  • Top authors: Andrico (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /60,212 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/multiple-sidebars/core.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; MultipleSidebarsCore has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼53.57ms] Passed 4 tests

An overview of server-side resources used by Multiple Sidebars
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.295.24 ▼40.34
Dashboard /wp-admin2.19 ▼1.126.71 ▼41.27
Posts /wp-admin/edit.php2.19 ▼1.176.78 ▼43.58
Add New Post /wp-admin/post-new.php2.19 ▼3.707.86 ▼89.08
Media Library /wp-admin/upload.php2.19 ▼1.046.04 ▼30.14
Add new sidebar /wp-admin/post-new.php?post_type=multiple-sidebars2.196.72
Options /wp-admin/edit.php?post_type=multiple-sidebars&page=opciones2.196.04
All sidebars /wp-admin/edit.php?post_type=multiple-sidebars2.197.36
Help /wp-admin/edit.php?post_type=multiple-sidebars&page=ayuda2.196.27

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_multiple_sidebars_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Multiple Sidebars
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.27 ▼1.111.77 ▼0.2342.19 ▼9.14
Dashboard /wp-admin2,229 ▲414.93 ▼0.98104.33 ▼8.1274.04 ▲32.25
Posts /wp-admin/edit.php2,131 ▲452.24 ▲0.1936.38 ▼3.9434.50 ▼2.15
Add New Post /wp-admin/post-new.php6,343 ▲4,80919.51 ▼3.55969.52 ▲286.6840.93 ▼17.82
Media Library /wp-admin/upload.php1,423 ▲354.15 ▼0.06102.49 ▼5.1068.56 ▲21.16
Add new sidebar /wp-admin/post-new.php?post_type=multiple-sidebars1,4282.4949.7863.23
Options /wp-admin/edit.php?post_type=multiple-sidebars&page=opciones1,1322.3238.7828.61
All sidebars /wp-admin/edit.php?post_type=multiple-sidebars1,0952.1940.1029.16
Help /wp-admin/edit.php?post_type=multiple-sidebars&page=ayuda8611.8227.6828.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/multiple-sidebars/core.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; MultipleSidebarsCore has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_multiple_sidebars_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=multiple-sidebars&page=ayuda
    • > Deprecated in wp-content/plugins/multiple-sidebars/core.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; MultipleSidebarsCore has a deprecated constructor
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=multiple-sidebars&page=ayuda
    • > Deprecated in wp-content/plugins/multiple-sidebars/herramientas.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; MultipleSidebars has a deprecated constructor
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=multiple-sidebars&page=ayuda
    • > Deprecated in wp-content/plugins/multiple-sidebars/widget.php+59
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/multiple-sidebars/multiple-sidebars.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'MultipleSidebarsCore' not found in wp-content/plugins/multiple-sidebars/herramientas.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/multiple-sidebars/ayuda.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multiple-sidebars/widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/multiple-sidebars/opciones.php:41

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 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Arrastrar para seleccionar el/los sidebar correspondiente), #2 (Colocar el widget MULTIPLE SIDEBARS WIDGET en el sidebar principal del tema elegido), #3 (Colocar en el theme la función para hacer funcionar el plugin)
  • Plugin Name: Please specify the plugin name on the first line ( === multiple-sidebars === )
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

multiple-sidebars/multiple-sidebars.php 85% from 13 tests

Analyzing the main PHP file in "Multiple Sidebars" version 1.3.0
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
There were no executable files found in this plugin796 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP65070507
PO File16292138
JavaScript14090
CSS11061

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity18.50
▷ Minimum class complexity2.00
▷ Maximum class complexity49.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
10 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ayuda.png.png2.25KB1.67KB▼ 25.73%
images/mas.png0.16KB0.12KB▼ 24.24%
images/movitems.png0.99KB0.17KB▼ 82.96%
images/sidebar.png0.42KB0.45KB0.00%
images/mas2.png3.13KB0.26KB▼ 91.58%