94% admin-columns-diagnostics

Code Review | Admin Columns Diagnostics

WordPress plugin Admin Columns Diagnostics scored 94% from 54 tests.

About plugin

  • Plugin page: admin-columns-dia...
  • Plugin version: 1.0
  • PHP compatiblity: 5.3.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 5.9.2
  • First release: Nov 15, 2018
  • Latest release: Nov 15, 2018
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: tschutter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 525 total downloads


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.00MB] [CPU: ▼291.70ms] Passed 4 tests

Analyzing server-side resources used by Admin Columns Diagnostics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0155.33 ▲3.05
Dashboard /wp-admin3.47 ▲0.0332.96 ▼1.42
Posts /wp-admin/edit.php3.70 ▲0.0338.76 ▲1.42
Add New Post /wp-admin/post-new.php6.94 ▼0.0695.13 ▼1,167.08
Media Library /wp-admin/upload.php3.35 ▲0.0323.57 ▲0.27

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Columns Diagnostics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲1316.20 ▲0.525.73 ▼0.102.65 ▲0.09
Dashboard /wp-admin2,888 ▲306.17 ▼0.05120.27 ▼9.54157.76 ▼2.92
Posts /wp-admin/edit.php2,691 ▼33.23 ▼0.0264.13 ▼0.52136.07 ▼3.25
Add New Post /wp-admin/post-new.php1,664 ▲2616.53 ▼5.57419.29 ▼25.43155.59 ▲7.08
Media Library /wp-admin/upload.php1,701 ▲35.53 ▲0.02142.20 ▼2.60187.76 ▼0.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Interface 'AC\\Registrable' not found in wp-content/plugins/admin-columns-diagnostics/patch-files/v4308/Manager.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'AC\\Admin\\Page' not found in wp-content/plugins/admin-columns-diagnostics/classes/Admin/Pages/Diagnostics.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'AC\\Plugin' not found in wp-content/plugins/admin-columns-diagnostics/classes/Diagnostics.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'ACA\\Diagnostics\\Patch' not found in wp-content/plugins/admin-columns-diagnostics/classes/Patches/V4308.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: debug

admin-columns-diagnostics/ac-addon-diagnostics.php 85% from 13 tests

The main PHP script in "Admin Columns Diagnostics" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-columns-diagnostics.php" instead of "ac-addon-diagnostics.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,334 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity15.29
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes350.00%
▷ Static methods00.00%
▷ Public methods3268.09%
▷ Protected methods24.26%
▷ Private methods1327.66%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants2100.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
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-1.png18.69KB17.53KB▼ 6.23%