74% galaxius-custom-sidebars

Code Review | Galaxius Custom Sidebars

WordPress plugin Galaxius Custom Sidebars scored 74% from 54 tests.

About plugin

  • Plugin page: galaxius-custom-s...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.6
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Aug 23, 2013
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: galaxiusmons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,282 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.67MB] [CPU: ▼46.10ms] Passed 4 tests

A check of server-side resources used by Galaxius Custom Sidebars
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.1610.11 ▼32.39
Dashboard /wp-admin2.34 ▼0.9616.91 ▼35.67
Posts /wp-admin/edit.php2.34 ▼1.0111.33 ▼36.14
Add New Post /wp-admin/post-new.php2.34 ▼3.549.98 ▼80.19
Media Library /wp-admin/upload.php2.34 ▼0.8810.92 ▼25.47
Custom Sidebars /wp-admin/options-general.php?page=gxsb_settings2.3511.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
gxsb_widget_title_class
can_compress_scripts
db_upgraded
widget_recent-comments
gxsb_widget_class
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Galaxius Custom Sidebars
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.28 ▼1.021.72 ▲0.0043.98 ▼9.55
Dashboard /wp-admin2,207 ▲164.87 ▼0.1894.43 ▼20.3239.53 ▼11.65
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0539.76 ▲2.9433.84 ▲1.35
Add New Post /wp-admin/post-new.php6,475 ▲4,96123.34 ▲5.82838.60 ▲209.5063.38 ▲5.85
Media Library /wp-admin/upload.php1,386 ▼24.22 ▼0.03100.13 ▲3.3341.67 ▼1.96
Custom Sidebars /wp-admin/options-general.php?page=gxsb_settings7882.0624.0425.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • gxsb_widget_title_class
    • theysaidso_admin_options
    • gxsb_widget_class
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=gxsb_settings
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
    • > GET request to /wp-admin/options-general.php?page=gxsb_settings
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
    • > GET request to /wp-admin/options-general.php?page=gxsb_settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Galaxius_Sidebars_Admin::create_admin_page() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=gxsb_settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=gxsb_settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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

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

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: unique, widgets, sidebars, pages, posts...

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

The main PHP file in "Galaxius Custom Sidebars" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("galaxius-custom-sidebars.php" instead of "galaxius-sidebars.php")

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
Good job! No executable or dangerous file extensions detected235 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36983202
PO File19833

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.44
Average class complexity16.00
▷ Minimum class complexity15.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods1493.33%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin