90% plugin-columns

Code Review | Plugin Columns

WordPress plugin Plugin Columns scored90%from 54 tests.

About plugin

  • Plugin page: plugin-columns
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4.1
  • WordPress version: 6.3.1
  • First release: Aug 11, 2018
  • Latest release: Jun 10, 2020
  • Number of updates: 23
  • Update frequency: every 29.1 days
  • Top authors: coderdimension (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,866 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
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.12ms] Passed 4 tests

A check of server-side resources used by Plugin Columns
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.24 ▼9.21
Dashboard /wp-admin3.31 ▼0.0344.42 ▼9.11
Posts /wp-admin/edit.php3.43 ▲0.0746.03 ▼0.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.68 ▼2.06
Media Library /wp-admin/upload.php3.23 ▲0.0133.73 ▲2.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Columns
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.311.86 ▲0.1441.34 ▼3.92
Dashboard /wp-admin2,195 ▲185.61 ▲0.0391.51 ▼8.2143.65 ▲5.91
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0040.41 ▲3.1136.26 ▲2.99
Add New Post /wp-admin/post-new.php1,528 ▼123.26 ▲0.07653.20 ▲8.2256.44 ▲5.84
Media Library /wp-admin/upload.php1,400 ▲64.21 ▼0.02108.40 ▲9.3547.63 ▲4.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

plugin-columns/plugin-columns.php Passed 13 tests

The entry point to "Plugin Columns" version 1.2.2 is a PHP file that has certain tags in its header comment area
37 characters long description:
Various columns for the plugins list.

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 plugin2,919 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22622501,934
JavaScript1793616
CSS1740369

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity530.00
▷ Minimum class complexity530.00
▷ Maximum class complexity530.00
Average method complexity8.97
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods63
▷ Static methods11.59%
▷ Public methods4165.08%
▷ Protected methods00.00%
▷ Private methods2234.92%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
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
PNG images were not found in this plugin