84% wen-responsive-columns

Code Review | WEN Responsive Columns

WordPress plugin WEN Responsive Columns scored84%from 54 tests.

About plugin

  • Plugin page: wen-responsive-co...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2015
  • Latest release: Aug 24, 2022
  • Number of updates: 19
  • Update frequency: every 144.0 days
  • Top authors: wenthemes (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /23,680 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.94ms] Passed 4 tests

A check of server-side resources used by WEN Responsive Columns
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.67 ▼1.23
Dashboard /wp-admin3.32 ▲0.0250.33 ▼1.12
Posts /wp-admin/edit.php3.38 ▲0.0246.13 ▼1.35
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.71 ▼12.04
Media Library /wp-admin/upload.php3.25 ▲0.0237.74 ▲0.58

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WEN Responsive Columns
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,995 ▲24913.56 ▼0.828.80 ▲7.1943.48 ▲4.06
Dashboard /wp-admin2,318 ▲1264.89 ▼0.06110.13 ▼3.4842.88 ▲4.06
Posts /wp-admin/edit.php2,201 ▲1122.02 ▼0.0235.29 ▼2.3231.50 ▼2.62
Add New Post /wp-admin/post-new.php1,626 ▲9323.20 ▲0.12690.61 ▲16.0456.96 ▲1.47
Media Library /wp-admin/upload.php1,503 ▲1124.30 ▲0.1396.61 ▼10.3743.37 ▼3.39

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wen-responsive-columns/admin/partials/wen-responsive-columns-admin-display.php
    • > /wp-content/plugins/wen-responsive-columns/public/partials/wen-responsive-columns-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: column shortcode, responsive, responsive layout, columns, grid...

wen-responsive-columns/wen-responsive-columns.php Passed 13 tests

The main PHP script in "WEN Responsive Columns" version 1.3.2 is automatically included on every request by WordPress
57 characters long description:
Easily display columnized content in your pages or posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin621 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14177574307
CSS21920169
JavaScript34278145

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.25
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/wrc-button.png0.67KB0.64KB▼ 4.81%