94% admin-column-view-selector

Code Review | Admin Column View Selector

WordPress plugin Admin Column View Selector scored 94% from 54 tests.

About plugin

  • Plugin page: admin-column-view...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 5.9.2
  • First release: Dec 2, 2015
  • Latest release: Dec 28, 2015
  • Number of updates: 10
  • Update frequency: every 2.7 days
  • Top authors: grnesmith (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 895 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼298.12ms] Passed 4 tests

Analyzing server-side resources used by Admin Column View Selector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.78 ▲2.03
Dashboard /wp-admin3.41 ▲0.0131.62 ▼1.93
Posts /wp-admin/edit.php3.64 ▲0.0036.31 ▼1.95
Add New Post /wp-admin/post-new.php6.88 ▼0.0989.43 ▼1,190.62
Media Library /wp-admin/upload.php3.30 ▲0.0025.99 ▲3.65

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Column View Selector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲8315.81 ▲0.126.10 ▲0.032.11 ▼0.24
Dashboard /wp-admin2,937 ▲766.03 ▼0.09115.34 ▼15.65152.77 ▼7.22
Posts /wp-admin/edit.php2,694 ▲33.24 ▼0.0160.49 ▼3.70141.35 ▼0.98
Add New Post /wp-admin/post-new.php1,757 ▲8921.94 ▲1.91432.10 ▲34.60155.25 ▼1.73
Media Library /wp-admin/upload.php1,695 ▼35.52 ▲0.03138.46 ▼3.66187.23 ▲4.14

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 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-column-view-selector/column-Selector-View.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === admin-column-view-selector === )
You can take inspiration from this readme.txt

admin-column-view-selector/column-Selector-View.php 92% from 13 tests

The main PHP file in "Admin Column View Selector" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admin-column-view-selector.php" instead of "column-Selector-View.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12710

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin