84% simple-columnizer

Code Review | Simple Columnizer

WordPress plugin Simple Columnizer scored84%from 54 tests.

About plugin

  • Plugin page: simple-columnizer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 30, 2015
  • Latest release: Oct 30, 2015
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: mbabar86mish (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /975 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼7.45ms] Passed 4 tests

Analyzing server-side resources used by Simple Columnizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2037.34 ▼1.44
Dashboard /wp-admin3.50 ▲0.2047.22 ▼1.36
Posts /wp-admin/edit.php3.61 ▲0.2648.71 ▼0.17
Add New Post /wp-admin/post-new.php6.10 ▲0.2183.03 ▼26.83
Media Library /wp-admin/upload.php3.42 ▲0.1936.46 ▲3.48

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_columnizer_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simple Columnizer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.30 ▼1.331.58 ▲0.0843.75 ▲3.62
Dashboard /wp-admin2,207 ▲166.04 ▲1.1599.27 ▼7.2938.99 ▼4.38
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0442.68 ▲8.1536.24 ▲0.86
Add New Post /wp-admin/post-new.php1,527 ▲1318.19 ▼3.42592.82 ▼92.8348.63 ▼12.90
Media Library /wp-admin/upload.php1,389 ▲14.19 ▼0.0295.51 ▼4.1041.75 ▼2.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_columnizer_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-columnizer/admin/class-simple-columnizer-widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

simple-columnizer/simple-columnizer.php Passed 13 tests

This is the main PHP file of "Simple Columnizer" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
65 characters long description:
A plugin that generate responsive column and displays the column.

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
There were no executable files found in this plugin2,844 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6392691,661
CSS163872
SVG100288
JavaScript14023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.80
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2787.10%
▷ Protected methods00.00%
▷ Private methods412.90%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.86MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png312.57KB91.00KB▼ 70.89%
screen-2.png312.57KB91.00KB▼ 70.89%
screen_preview.png28.05KB9.00KB▼ 67.90%
screen-1.png98.52KB35.79KB▼ 63.67%
assets/screenshot-1.png98.52KB35.79KB▼ 63.67%