77% colored-admin-post-list

Code Review | Colored Admin Post List

WordPress plugin Colored Admin Post List scored77%from 54 tests.

About plugin

  • Plugin page: colored-admin-pos...
  • Plugin version: 3.0.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2013
  • Latest release: May 9, 2023
  • Number of updates: 77
  • Update frequency: every 46.8 days
  • Top authors: rockschtar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /7,657 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Colored Admin Post List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0054.57 ▲15.44
Dashboard /wp-admin3.31 ▲0.0047.08 ▼5.93
Posts /wp-admin/edit.php3.36 ▲0.0046.50 ▼7.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.44 ▼19.64
Media Library /wp-admin/upload.php3.23 ▲0.0036.56 ▼1.25

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Colored Admin Post List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.321.89 ▲0.0541.99 ▼4.08
Dashboard /wp-admin2,195 ▲155.55 ▼0.1084.99 ▼12.5037.09 ▼3.02
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0439.50 ▲1.8736.55 ▼0.35
Add New Post /wp-admin/post-new.php1,526 ▼222.97 ▼0.26682.51 ▲45.1458.81 ▲6.10
Media Library /wp-admin/upload.php1,394 ▼64.23 ▲0.04100.46 ▼1.6843.51 ▼0.58

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% 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 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/colored-admin-post-list/views/settings.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Trait 'Rockschtar\\WordPress\\ColoredAdminPostList\\Controller\\Controller' not found in wp-content/plugins/colored-admin-post-list/src/Controller/StyleController.php on line 8
    • > PHP Fatal error
      Trait 'Rockschtar\\WordPress\\ColoredAdminPostList\\Controller\\Controller' not found in wp-content/plugins/colored-admin-post-list/src/Controller/PluginController.php on line 10
    • > PHP Fatal error
      Trait 'Rockschtar\\WordPress\\ColoredAdminPostList\\Controller\\Controller' not found in wp-content/plugins/colored-admin-post-list/src/Controller/SettingsController.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/colored-admin-post-list/colored-admin-post-list.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Colored rows by post status), #2 (Options)
  • Tags: There are too many tags (18 tag instead of maximum 10)
You can take inspiration from this readme.txt

colored-admin-post-list/colored-admin-post-list.php 85% from 13 tests

The main PHP script in "Colored Admin Post List" version 3.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 141 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("6.0" instead of "6.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin415 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP139538358
PO File1101039
JavaScript11010
XML1558

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.36
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods27
▷ Static methods829.63%
▷ Public methods2488.89%
▷ Protected methods00.00%
▷ Private methods311.11%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants18
▷ Global constants422.22%
▷ Class constants1477.78%
▷ Public constants14100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png38.99KB18.12KB▼ 53.52%
screenshot-2.png13.85KB5.33KB▼ 61.47%