90% genesis-columns-advanced

Code Review | Genesis Columns Advanced

WordPress plugin Genesis Columns Advanced scored90%from 54 tests.

About plugin

  • Plugin page: genesis-columns-a...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2015
  • Latest release: Jan 18, 2023
  • Number of updates: 33
  • Update frequency: every 88.1 days
  • Top authors: ndiego (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

10,000+ active /128,236 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.68ms] Passed 4 tests

An overview of server-side resources used by Genesis Columns Advanced
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.62 ▼6.13
Dashboard /wp-admin3.46 ▲0.1650.81 ▼2.21
Posts /wp-admin/edit.php3.48 ▲0.1252.33 ▲4.74
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.47 ▼4.50
Media Library /wp-admin/upload.php3.39 ▲0.1637.55 ▲2.13

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Columns Advanced
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,259 ▲51313.30 ▼1.514.73 ▲2.4440.90 ▼4.64
Dashboard /wp-admin2,654 ▲4664.98 ▲0.10116.95 ▲8.3142.97 ▼2.54
Posts /wp-admin/edit.php2,543 ▲4542.15 ▲0.1747.18 ▲13.6968.06 ▲31.29
Add New Post /wp-admin/post-new.php1,971 ▲44723.31 ▲0.40721.04 ▲80.2138.37 ▼22.83
Media Library /wp-admin/upload.php1,845 ▲4574.30 ▲0.19105.81 ▲1.3347.30 ▲0.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: tinymce, columns, genesiswp, genesis, genesis framework...

genesis-columns-advanced/genesis-columns-advanced.php Passed 13 tests

The main PHP file in "Genesis Columns Advanced" ver. 2.0.5 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
Adds shortcodes to easily create up to 42 different columned layouts.

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
No dangerous file extensions were detected882 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS28236348
PHP3103124348
JavaScript25829186

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
53 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tinymce/images/layouts/sixth_twosixths_threesixths.png0.34KB0.11KB▼ 67.43%
tinymce/images/layouts/threefifths_twofifths.png0.33KB0.11KB▼ 67.36%
tinymce/images/layouts/fourths.png0.33KB0.11KB▼ 65.27%
tinymce/images/layouts/sixth_foursixths_sixth.png0.29KB0.11KB▼ 61.64%
tinymce/images/layouts/sixth_twosixths_sixth_sixth_sixth.png0.34KB0.11KB▼ 66.95%