78% sv-columns-manager

Code Review | SV Columns Manager

WordPress plugin SV Columns Manager scored78%from 54 tests.

About plugin

  • Plugin page: sv-columns-manager
  • Plugin version: 2.0.00
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 18, 2021
  • Latest release: May 24, 2023
  • Number of updates: 10
  • Update frequency: every 85.8 days
  • Top authors: Matthias Reuter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,078 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.78MB] [CPU: ▼6.21ms] Passed 4 tests

An overview of server-side resources used by SV Columns Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7439.18 ▼2.92
Dashboard /wp-admin4.14 ▲0.7951.43 ▼10.07
Posts /wp-admin/edit.php4.19 ▲0.8353.07 ▲0.55
Add New Post /wp-admin/post-new.php6.69 ▲0.8198.19 ▼12.40
Media Library /wp-admin/upload.php4.00 ▲0.7740.03 ▲0.85
SV Columns Manager /wp-admin/admin.php?page=sv_columns_manager4.0439.87
Info /wp-admin/admin.php?page=straightvisions4.0845.14

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 201 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
sv_columns_manager_scripts_settings_sv_core_color_picker_attached
db_upgraded
widget_recent-posts
can_compress_scripts
sv_columns_manager_scripts_settings_flush_css_cache
widget_theysaidso_widget
sv_columns_manager_scripts_settings_css_sv_columns_manager_sv_columns_manager_scripts_wrapper_attached
sv_columns_manager_scripts_settings_css_sv_columns_manager_sv_columns_manager_scripts_config_attached

Browser metrics Passed 4 tests

An overview of browser requirements for SV Columns Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16214.24 ▼0.132.05 ▲0.0342.72 ▲2.48
Dashboard /wp-admin2,327 ▲1475.60 ▼0.0584.33 ▼5.9385.71 ▲42.56
Posts /wp-admin/edit.php2,235 ▲1352.00 ▼0.0238.68 ▼7.3334.78 ▼0.09
Add New Post /wp-admin/post-new.php6,329 ▲4,65019.45 ▼2.951,028.91 ▲354.0542.56 ▼9.91
Media Library /wp-admin/upload.php1,535 ▲1354.22 ▲0.0398.30 ▼6.6674.46 ▲27.53
SV Columns Manager /wp-admin/admin.php?page=sv_columns_manager1,54610.53180.4235.40
Info /wp-admin/admin.php?page=straightvisions1,58310.6583.96170.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 10 options in the database
    • db_upgraded
    • sv_columns_manager_scripts_settings_sv_core_color_picker_attached
    • widget_theysaidso_widget
    • sv_columns_manager_scripts_settings_flush_css_cache
    • can_compress_scripts
    • sv_columns_manager_scripts_settings_css_sv_columns_manager_sv_columns_manager_scripts_config_attached
    • sv_columns_manager_scripts_settings_css_sv_columns_manager_sv_columns_manager_scripts_wrapper_attached
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/sv-columns-manager/src/lib/modules/sv_columns_manager/lib/frontend/css/alignment.php
    • > /wp-content/plugins/sv-columns-manager/src/lib/modules/sv_columns_manager/lib/frontend/css/alignment_margin.php
    • > /wp-content/plugins/sv-columns-manager/src/core_plugin/core/settings/tpl/setting_checkbox_field.php
  • 325× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: props in wp-content/plugins/sv-columns-manager/src/core_plugin/core/settings/tpl/setting_font_tpl/font_weight.php on line 1
    • > PHP Notice
      Undefined variable: props in wp-content/plugins/sv-columns-manager/src/core_plugin/core/settings/tpl/setting_margin_field.php on line 20
    • > PHP Notice
      Undefined variable: gap in wp-content/plugins/sv-columns-manager/src/lib/modules/sv_columns_manager/lib/frontend/css/alignment_margin.php on line 190
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sv-columns-manager/src/core_plugin/core/settings/tpl/setting_font_tpl/font_family.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sv-columns-manager/src/lib/modules/sv_columns_manager/lib/frontend/css/alignment_margin.php on line 2
    • > PHP Notice
      Undefined variable: gap in wp-content/plugins/sv-columns-manager/src/lib/modules/sv_columns_manager/lib/frontend/css/alignment_margin.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sv-columns-manager/src/core_plugin/core/backend/tpl/about.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sv-columns-manager/src/core_plugin/core/settings/tpl/setting_text.php on line 5
    • > PHP Notice
      Undefined variable: props in wp-content/plugins/sv-columns-manager/src/core_plugin/core/settings/tpl/setting_text.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sv-columns-manager/src/core_plugin/core/settings/tpl/setting_date.php on line 6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Step 1: Select SV Columns Manager Block), #2 (Step 2: Drag your Columns Block in), #3 (Step 3: Configure to your needs)
The official readme.txt might help

sv-columns-manager/sv_columns_manager.php 85% from 13 tests

The main file in "SV Columns Manager" v. 2.0.00 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sv-columns-manager.php" instead of "sv_columns_manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin18,331 lines of code in 174 files:
LanguageFilesBlank linesComment linesLines of code
JSON3007,203
PHP991,1701,4215,533
CSS32289902,852
JavaScript322521711,187
PO File2407650786
SVG200585
Sass2411183
Markdown2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity18.97
▷ Minimum class complexity1.00
▷ Maximum class complexity145.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes38
▷ Abstract classes12.63%
▷ Concrete classes3797.37%
▷ Final classes00.00%
Methods444
▷ Static methods81.80%
▷ Public methods39087.84%
▷ Protected methods286.31%
▷ Private methods265.86%
Functions18
▷ Named functions00.00%
▷ Anonymous functions18100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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