78% genesis-easy-columns

Code Review | Genesis Easy Columns

WordPress plugin Genesis Easy Columns scored78%from 54 tests.

About plugin

  • Plugin page: genesis-easy-columns
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.8
  • WordPress version: 6.3.1
  • First release: Mar 28, 2013
  • Latest release: Jan 31, 2014
  • Number of updates: 42
  • Update frequency: every 7.4 days
  • Top authors: Code96 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

4,000+ active /49,888 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.13ms] Passed 4 tests

This is a short check of server-side resources used by Genesis Easy Columns
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.63 ▼4.67
Dashboard /wp-admin3.33 ▲0.0345.01 ▼6.97
Posts /wp-admin/edit.php3.38 ▲0.0342.32 ▼4.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.68 ▼7.99
Media Library /wp-admin/upload.php3.26 ▲0.0333.98 ▼1.97
Easy Columns /wp-admin/options-general.php?page=gc-settings3.2231.08

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis Easy Columns
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.69 ▼0.692.06 ▲0.1639.98 ▼11.53
Dashboard /wp-admin2,213 ▲226.02 ▲1.15100.49 ▼4.0541.55 ▼5.59
Posts /wp-admin/edit.php2,093 ▲12.14 ▲0.1336.19 ▼1.5933.51 ▲0.45
Add New Post /wp-admin/post-new.php1,531 ▼223.08 ▼0.48579.62 ▼13.4163.03 ▲10.65
Media Library /wp-admin/upload.php1,386 ▼24.17 ▲0.0194.68 ▼8.5942.79 ▼1.50
Easy Columns /wp-admin/options-general.php?page=gc-settings8222.0326.7828.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-easy-columns/includes/gc-settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-easy-columns/includes/functions.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/genesis-easy-columns/includes/shortcodes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/genesis-easy-columns/genesis-columns.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=gc-settings
    • > Network (severe)
    http://www.code96wd.com/wp-content/uploads/2013/03/Code-96-WordPress-Design.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
10 plugin tags: column, columns, wordpress columns, column editor, magazine columns...

genesis-easy-columns/genesis-columns.php 92% from 13 tests

Analyzing the main PHP file in "Genesis Easy Columns" version 1.4
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("genesis-easy-columns.php" instead of "genesis-columns.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin285 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43228136
JavaScript116081
CSS115268

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/clear.png3.02KB0.59KB▼ 80.36%
includes/images/five-column.png1.12KB0.25KB▼ 78.07%
includes/images/three-column.png1.19KB0.32KB▼ 72.79%
includes/images/two-column.png1.23KB0.39KB▼ 68.17%
includes/images/six-column.png1.14KB0.26KB▼ 77.57%