79% cm-css-columns

Code Review | CM CSS Columns

WordPress plugin CM CSS Columns scored79%from 54 tests.

About plugin

  • Plugin page: cm-css-columns
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 11, 2016
  • Latest release: Oct 6, 2018
  • Number of updates: 32
  • Update frequency: every 24.6 days
  • Top authors: codemacher (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,350 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.17MB] [CPU: ▼7.61ms] Passed 4 tests

Server-side resources used by CM CSS Columns
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.68 ▼2.01
Dashboard /wp-admin3.47 ▲0.1750.66 ▼0.12
Posts /wp-admin/edit.php3.58 ▲0.2349.04 ▼4.29
Add New Post /wp-admin/post-new.php6.07 ▲0.1889.66 ▼24.02
Media Library /wp-admin/upload.php3.39 ▲0.1639.56 ▲3.83
CSS Columns /wp-admin/options-general.php?page=cm-css-columns3.3634.74

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by CM CSS Columns
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.40 ▲0.011.74 ▼0.1643.31 ▼2.40
Dashboard /wp-admin2,216 ▲365.80 ▲0.1794.19 ▲1.2936.40 ▼5.84
Posts /wp-admin/edit.php2,132 ▲292.29 ▲0.2539.92 ▼0.1235.31 ▲0.40
Add New Post /wp-admin/post-new.php1,552 ▲2623.18 ▼0.54657.02 ▼7.6136.52 ▼16.86
Media Library /wp-admin/upload.php1,430 ▲334.35 ▲0.15100.71 ▼4.9346.07 ▼1.48
CSS Columns /wp-admin/options-general.php?page=cm-css-columns1,1282.0725.4247.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function codemacher\\CssColumns\\plugin_dir_path() in wp-content/plugins/cm-css-columns/includes/CorePlugin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function codemacher\\CssColumns\\plugin_dir_path() in wp-content/plugins/cm-css-columns/admin/Admin.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=cm-css-columns
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=cm-css-columns 158 The specified value "inital" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: shortcode, columns, css3

cm-css-columns/cm-css-columns.php Passed 13 tests

"CM CSS Columns" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
Use column layouts without any layout builder! Wrap your content and display columns.

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 detected705 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12137517478
JavaScript1142210
CSS20417

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods54
▷ Static methods35.56%
▷ Public methods4685.19%
▷ Protected methods23.70%
▷ Private methods611.11%
Functions3
▷ Named functions3100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/icon.png0.50KB0.61KB0.00%