89% ultimate-colors

Code Review | Ultimate Colors

WordPress plugin Ultimate Colors scored89%from 54 tests.

About plugin

  • Plugin page: ultimate-colors
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Sep 14, 2019
  • Number of updates: 5
  • Update frequency: every 214.4 days
  • Top authors: gretathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /8,279 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.08MB] [CPU: ▼2.34ms] Passed 4 tests

Server-side resources used by Ultimate Colors
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.88 ▼3.35
Dashboard /wp-admin3.71 ▲0.4054.97 ▼0.70
Posts /wp-admin/edit.php3.48 ▲0.1244.60 ▼5.12
Add New Post /wp-admin/post-new.php5.95 ▲0.06105.45 ▼0.17
Media Library /wp-admin/upload.php3.29 ▲0.0636.63 ▲2.75

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
ultimate-colors

Browser metrics Passed 4 tests

Ultimate Colors: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲14514.75 ▲0.131.90 ▼0.4343.73 ▼1.34
Dashboard /wp-admin2,297 ▲1124.87 ▼0.99113.14 ▲6.6043.82 ▲4.67
Posts /wp-admin/edit.php2,108 ▲192.02 ▼0.0335.21 ▼4.7133.39 ▼3.40
Add New Post /wp-admin/post-new.php1,551 ▲3223.22 ▲0.06642.65 ▼41.4965.11 ▲3.54
Media Library /wp-admin/upload.php1,398 ▲134.18 ▼0.0297.62 ▼10.0845.65 ▲0.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • ultimate-colors
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Customizer) image not found
You can take inspiration from this readme.txt

ultimate-colors/ultimate-colors.php 92% from 13 tests

"Ultimate Colors" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
There were no executable files found in this plugin373 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP541120273
JavaScript2182363
CSS10037

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.25
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods1890.00%
▷ Protected methods210.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected