79% responsive-column-widgets

Code Review | Responsive Column Widgets

WordPress plugin Responsive Column Widgets scored79%from 54 tests.

About plugin

  • Plugin page: responsive-column...
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.6
  • WordPress version: 6.3.1
  • First release: Dec 29, 2012
  • Latest release: Jun 10, 2018
  • Number of updates: 410
  • Update frequency: every 4.9 days
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

2,000+ active /125,145 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.39MB] [CPU: ▲12.66ms] Passed 4 tests

This is a short check of server-side resources used by Responsive Column Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6847.16 ▲4.62
Dashboard /wp-admin4.93 ▲1.6266.62 ▲10.92
Posts /wp-admin/edit.php4.98 ▲1.6259.13 ▲11.55
Add New Post /wp-admin/post-new.php7.52 ▲1.63122.48 ▲23.54
Media Library /wp-admin/upload.php4.85 ▲1.6258.56 ▲23.64
Responsive Column Widgets /wp-admin/themes.php?page=responsive_column_widgets5.1548.62

Server storage [IO: ▲0.80MB] [DB: ▲1.60MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_responsive_column_widget_box
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Responsive Column Widgets: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲11914.40 ▲0.152.00 ▲0.1841.50 ▼9.48
Dashboard /wp-admin2,218 ▲304.85 ▼0.01108.36 ▼15.6846.59 ▲1.98
Posts /wp-admin/edit.php2,101 ▲91.96 ▼0.0345.63 ▲5.7634.48 ▲1.23
Add New Post /wp-admin/post-new.php1,532 ▼121.17 ▼2.16630.01 ▼52.0668.39 ▲3.90
Media Library /wp-admin/upload.php1,400 ▲154.32 ▲0.15109.82 ▼14.4842.82 ▼5.70
Responsive Column Widgets /wp-admin/themes.php?page=responsive_column_widgets1,8092.5744.6452.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_responsive_column_widget_box
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=responsive_column_widgets
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=responsive_column_widgets
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=responsive_column_widgets
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=responsive_column_widgets
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/responsive-column-widgets/include/class/utility/ResponsiveColumnWidgets_SimplePie_.php on line 26
    • > PHP Warning
      include_once(ABSPATHWPINC/class-feed.php): failed to open stream: No such file or directory in wp-content/plugins/responsive-column-widgets/include/class/utility/ResponsiveColumnWidgets_SimplePie_.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/responsive-column-widgets/include/class/utility/ResponsiveColumnWidgets_SimplePie_.php:29
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/responsive-column-widgets/include/class/utility/ResponsiveColumnWidgets_Redirects.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-IXR.php' (include_path='.:/usr/share/php') in wp-content/plugins/responsive-column-widgets/include/class/utility/ResponsiveColumnWidgets_Redirects.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/responsive-column-widgets/include/class/utility/ResponsiveColumnWidgets_SimplePie_.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'ResponsiveColumnWidgets_Registry' not found in wp-content/plugins/responsive-column-widgets/include/include-class-list.php:3
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/responsive-column-widgets/include/class/utility/ResponsiveColumnWidgets_SimplePie_.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'ResponsiveColumnWidgets_Option_' not found in wp-content/plugins/responsive-column-widgets/include/class/option/ResponsiveColumnWidgets_Option.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ResponsiveColumnWidgets_IDHandler_' not found in wp-content/plugins/responsive-column-widgets/include/class/utility/ResponsiveColumnWidgets_IDHandler.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: column, widget, layout, magazine layout, responsive...

responsive-column-widgets/responsive-column-widgets.php Passed 13 tests

The main file in "Responsive Column Widgets" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
Creates a widget box which displays widgets in columns with a responsive design.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin8,214 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP442,2112,4196,658
PO File25287681,556

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity22.94
▷ Minimum class complexity1.00
▷ Maximum class complexity192.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes52
▷ Abstract classes00.00%
▷ Concrete classes52100.00%
▷ Final classes23.85%
Methods407
▷ Static methods215.16%
▷ Public methods28570.02%
▷ Protected methods11428.01%
▷ Private methods81.97%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants529.41%
▷ Class constants1270.59%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
asset/image/exclamationmark16x16.png2.99KB0.34KB▼ 88.62%