83% mondos-columns-manager

Code Review | Mondos Columns Manager

WordPress plugin Mondos Columns Manager scored83%from 54 tests.

About plugin

  • Plugin page: mondos-columns-ma...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2015
  • Latest release: Apr 12, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: erichmond (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /647 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.93ms] Passed 4 tests

A check of server-side resources used by Mondos Columns Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.59 ▼2.85
Dashboard /wp-admin3.41 ▲0.0747.68 ▼12.48
Posts /wp-admin/edit.php3.53 ▲0.1746.39 ▼2.18
Add New Post /wp-admin/post-new.php6.01 ▲0.1380.87 ▼14.21
Media Library /wp-admin/upload.php3.34 ▲0.1133.62 ▲3.38
Columns Manager /wp-admin/options-general.php?page=mondos-setting-admin3.3030.92

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Mondos Columns Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.19 ▼1.161.73 ▼0.0543.10 ▼1.31
Dashboard /wp-admin2,214 ▲265.83 ▲0.9498.96 ▼15.5039.97 ▼4.90
Posts /wp-admin/edit.php2,097 ▲82.01 ▲0.0238.89 ▲4.2034.34 ▼1.33
Add New Post /wp-admin/post-new.php1,521 ▲123.30 ▲0.12655.98 ▲0.4649.90 ▼5.19
Media Library /wp-admin/upload.php1,396 ▲84.16 ▼0.0897.15 ▼1.1243.24 ▼0.47
Columns Manager /wp-admin/options-general.php?page=mondos-setting-admin9952.1824.5326.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/mondos-columns-manager/admin/partials/mondos-columns-admin-display.php
    • > /wp-content/plugins/mondos-columns-manager/public/partials/plugin-name-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === mondos-columns-manager === )
You can take inspiration from this readme.txt

mondos-columns-manager/mondos-column-manager.php 85% from 13 tests

"Mondos Columns Manager" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mondos-columns-manager.php" instead of "mondos-column-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected578 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12196611565
CSS2187
JavaScript24546

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.43
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods45
▷ Static methods24.44%
▷ Public methods4191.11%
▷ Protected methods00.00%
▷ Private methods48.89%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin