74% widgets-in-columns

Code Review | Widgets in Columns

WordPress plugin Widgets in Columns scored74%from 54 tests.

About plugin

  • Plugin page: widgets-in-columns
  • Plugin version: 0.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2011
  • Latest release: Jul 12, 2014
  • Number of updates: 32
  • Update frequency: every 31.4 days
  • Top authors: shazdeh (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /13,856 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.65MB] [CPU: ▼51.25ms] Passed 4 tests

A check of server-side resources used by Widgets in Columns
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.35 ▼1.119.11 ▼30.49
Dashboard /wp-admin2.37 ▼0.9811.84 ▼46.56
Posts /wp-admin/edit.php2.37 ▼0.9913.74 ▼33.54
Add New Post /wp-admin/post-new.php2.37 ▼3.5211.20 ▼94.42
Media Library /wp-admin/upload.php2.37 ▼0.869.79 ▼25.32

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
widget_wic-divider
widget_theysaidso_widget
widget_wic-spacer
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Widgets in Columns
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.71 ▼0.584.38 ▲2.6341.44 ▲4.99
Dashboard /wp-admin2,203 ▲185.81 ▼0.0696.22 ▼4.6538.16 ▼7.04
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0240.08 ▲5.4134.37 ▼4.29
Add New Post /wp-admin/post-new.php1,544 ▲2518.64 ▼4.69612.58 ▼30.0453.27 ▲0.22
Media Library /wp-admin/upload.php1,385 ▲34.20 ▼0.03101.26 ▲4.4241.60 ▼1.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/widgets-in-columns/widgets.php+9
    Methods with the same name as their class will not be constructors in a future version of PHP; WIC_Widget_Divider has a deprecated constructor
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • widget_wic-divider
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_wic-spacer
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-in-columns/widgets.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-in-columns/widgets-in-columns.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: widget, admin, columns

widgets-in-columns/widgets-in-columns.php Passed 13 tests

The principal PHP file in "Widgets in Columns" v. 0.2.4 is loaded by WordPress automatically on each request
114 characters long description:
Display your widgets in desired columns and rows. This is a weapon too powerful to be used in the hand of mortals!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected321 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS220158
PHP23354141
JavaScript13322

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions0
▷ Named functions00.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