84% grid-columns

Code Review | Grid Columns

WordPress plugin Grid Columns scored84%from 54 tests.

About plugin

  • Plugin page: grid-columns
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.7
  • WordPress version: 6.3.1
  • First release: Oct 3, 2012
  • Latest release: Oct 4, 2013
  • Number of updates: 6
  • Update frequency: every 61.2 days
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

1,000+ active /35,636 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.64MB] [CPU: ▼102,436.01ms] Passed 4 tests

A check of server-side resources used by Grid Columns
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▼2.6039.36 ▼409,701.75
Dashboard /wp-admin3.37 ▼0.0253.10 ▼15.39
Posts /wp-admin/edit.php3.48 ▲0.0847.98 ▼8.46
Add New Post /wp-admin/post-new.php5.95 ▲0.0285.15 ▼18.44
Media Library /wp-admin/upload.php3.29 ▲0.0237.08 ▼2.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Grid Columns
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.74 ▲0.392.25 ▲0.4542.04 ▼1.60
Dashboard /wp-admin2,198 ▲185.57 ▼0.0886.37 ▼9.2738.81 ▼7.72
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0642.78 ▲0.3435.85 ▼1.77
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▼0.51688.08 ▼17.7054.70 ▲0.44
Media Library /wp-admin/upload.php1,403 ▼04.17 ▲0.04102.94 ▼10.2741.20 ▼7.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 | 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
  • 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/grid-columns/grid-columns.php:99

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: shortcode

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

The primary PHP file in "Grid Columns" version 0.2.0 is used by WordPress to initiate all plugin functionality
28 characters long description:
A [column] shortcode plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected357 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
HTML1660114
CSS22526112
PHP15315095
Markdown127036

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin