90% wp-term-colors

Code Review | WP Term Colors

WordPress plugin WP Term Colors scored90%from 54 tests.

About plugin

  • Plugin page: wp-term-colors
  • Plugin version: 0.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Jan 8, 2016
  • Number of updates: 13
  • Update frequency: every 10.5 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /14,304 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.82ms] Passed 4 tests

Analyzing server-side resources used by WP Term Colors
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.86 ▲4.56
Dashboard /wp-admin3.40 ▲0.0652.77 ▼15.65
Posts /wp-admin/edit.php3.51 ▲0.1649.20 ▼1.00
Add New Post /wp-admin/post-new.php5.98 ▲0.1087.26 ▼2.73
Media Library /wp-admin/upload.php3.32 ▲0.0937.25 ▲0.12

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
wpdb_term_color_version
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Term Colors
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.201.65 ▼0.2946.63 ▲4.72
Dashboard /wp-admin2,198 ▲175.60 ▼0.1296.53 ▼7.2043.67 ▲1.19
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0135.56 ▼0.5933.88 ▼1.78
Add New Post /wp-admin/post-new.php1,526 ▼023.32 ▼0.28670.67 ▼13.4147.50 ▼11.09
Media Library /wp-admin/upload.php1,397 ▼34.18 ▲0.0396.32 ▼13.3841.22 ▼2.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • wpdb_term_color_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: metadata, taxonomy, meta, color, colors...

wp-term-colors/wp-term-colors.php Passed 13 tests

The main file in "WP Term Colors" v. 0.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Pretty colors for categories, tags, and other taxonomy terms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin342 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3136373296
Markdown119033
JavaScript13013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods31
▷ Static methods00.00%
▷ Public methods2580.65%
▷ Protected methods412.90%
▷ Private methods26.45%
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
PNG images were not found in this plugin