84% colorize-admin

Code Review | Colorize Admin

WordPress plugin Colorize Admin scored84%from 54 tests.

About plugin

  • Plugin page: colorize-admin
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Dec 9, 2015
  • Latest release: Aug 5, 2019
  • Number of updates: 29
  • Update frequency: every 46.0 days
  • Top authors: artcreativeme (93.1%)cicophoto (10.34%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /6,540 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.04MB] [CPU: ▼6.83ms] Passed 4 tests

A check of server-side resources used by Colorize Admin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.15 ▼0.42
Dashboard /wp-admin3.36 ▲0.0146.76 ▼14.22
Posts /wp-admin/edit.php3.41 ▲0.0546.41 ▼1.97
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.53 ▼10.71
Media Library /wp-admin/upload.php3.28 ▲0.0540.35 ▲4.84

Server storage [IO: ▲0.56MB] [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: 76 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
_colorthemeadmintop
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
_colorthemeadmin

Browser metrics Passed 4 tests

Colorize Admin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10114.47 ▲0.061.92 ▲0.2437.91 ▼4.82
Dashboard /wp-admin2,223 ▲314.87 ▼0.10109.97 ▼7.0940.74 ▲1.24
Posts /wp-admin/edit.php2,109 ▲202.01 ▼0.1436.61 ▼4.5235.85 ▼1.96
Add New Post /wp-admin/post-new.php1,530 ▲1117.66 ▼5.46629.32 ▼77.6540.78 ▼15.88
Media Library /wp-admin/upload.php1,411 ▲204.19 ▼0.0196.78 ▼8.1542.53 ▼3.39

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | 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 items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/colorize-admin/inc/settings.php
    • > /wp-content/plugins/colorize-admin/inc/admin-options.php
    • > /wp-content/plugins/colorize-admin/inc/install.php
    • > /wp-content/plugins/colorize-admin/wpvote-colorize-admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Colorize Admin Back-end)
The official readme.txt might help

colorize-admin/wpvote-colorize-admin.php 92% from 13 tests

The main PHP script in "Colorize Admin" version 2.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 ("colorize-admin.php" instead of "wpvote-colorize-admin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected383 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PHP5428174
PO File23747149
CSS600060

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png47.28KB19.35KB▼ 59.06%