84% lightweight-grid-columns

Code Review | Lightweight Grid Columns

WordPress plugin Lightweight Grid Columns scored84%from 54 tests.

About plugin

  • Plugin page: lightweight-grid-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.1
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: Mar 14, 2019
  • Number of updates: 26
  • Update frequency: every 53.6 days
  • Top authors: edge22 (100%)

Code review

54 tests

User reviews

42 reviews

Install metrics

20,000+ active /112,959 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼13.12ms] Passed 4 tests

A check of server-side resources used by Lightweight Grid Columns
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.39 ▼6.02
Dashboard /wp-admin3.33 ▼0.0252.63 ▼21.86
Posts /wp-admin/edit.php3.38 ▲0.0249.96 ▼2.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.53 ▼21.25
Media Library /wp-admin/upload.php3.25 ▲0.0238.17 ▼3.34

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lightweight Grid Columns
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.25 ▼0.351.98 ▲0.2439.89 ▼4.89
Dashboard /wp-admin2,197 ▲205.54 ▼0.1188.56 ▼13.6142.47 ▼0.32
Posts /wp-admin/edit.php2,105 ▲52.02 ▼0.0139.43 ▼1.8538.42 ▲5.72
Add New Post /wp-admin/post-new.php1,531 ▲323.59 ▲0.43683.35 ▲7.3049.31 ▼1.42
Media Library /wp-admin/upload.php1,405 ▲84.19 ▲0.05114.07 ▼6.9950.21 ▲2.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightweight-grid-columns/lightweight-grid-columns.php:16

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
3 plugin tags: columns shortcode, grid columns, columns

lightweight-grid-columns/lightweight-grid-columns.php Passed 13 tests

This is the main PHP file of "Lightweight Grid Columns" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Add columns to your content using easy to use shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,181 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS54491361,700
JavaScript37590362
PHP11749119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin