94% column-matic

Code Review | Column-Matic

WordPress plugin Column-Matic scored 94% from 54 tests.

About plugin

  • Plugin page: column-matic
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 5.9.2
  • First release: Feb 27, 2012
  • Latest release: Dec 17, 2014
  • Number of updates: 21
  • Update frequency: every 48.8 days
  • Top authors: baden03 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active / 58,277 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼294.51ms] Passed 4 tests

This is a short check of server-side resources used by Column-Matic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0854.90 ▲4.35
Dashboard /wp-admin3.46 ▲0.0534.13 ▲0.20
Posts /wp-admin/edit.php3.69 ▲0.0538.88 ▲0.19
Add New Post /wp-admin/post-new.php6.93 ▼0.0493.93 ▼1,181.16
Media Library /wp-admin/upload.php3.34 ▲0.0527.23 ▲2.73
Column-Matic /wp-admin/options-general.php?page=column-matic-options3.3122.99

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Column-Matic: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2415.91 ▼0.045.97 ▼0.152.27 ▼0.28
Dashboard /wp-admin2,897 ▲436.07 ▼0.14118.80 ▼16.74157.45 ▼5.97
Posts /wp-admin/edit.php2,696 ▲23.23 ▲0.0161.68 ▼4.90143.74 ▼1.21
Add New Post /wp-admin/post-new.php1,714 ▲5420.81 ▲5.25428.56 ▲7.55159.72 ▲2.51
Media Library /wp-admin/upload.php1,700 ▲25.52 ▼0.03142.00 ▼2.25184.43 ▼6.80
Column-Matic /wp-admin/options-general.php?page=column-matic-options1,1492.3854.72116.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/column-matic/column-matic.php:299

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt might help

column-matic/column-matic.php 92% from 13 tests

The main file in "Column-Matic" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin306 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12860232
PO File1262874

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.48
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/column-matic-icon.png2.56KB1.58KB▼ 38.34%