84% kantbtrue-taxonomy-color

Code Review | Kantbtrue Taxonomy Color

WordPress plugin Kantbtrue Taxonomy Color scored84%from 54 tests.

About plugin

  • Plugin page: kantbtrue-taxonom...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2020
  • Latest release: Oct 2, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: kantbtrue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.47ms] Passed 4 tests

Analyzing server-side resources used by Kantbtrue Taxonomy Color
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.75 ▼0.21
Dashboard /wp-admin3.39 ▲0.0451.34 ▼18.01
Posts /wp-admin/edit.php3.44 ▲0.0848.37 ▼6.51
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.96 ▼7.51
Media Library /wp-admin/upload.php3.31 ▲0.0838.41 ▼1.84

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Kantbtrue Taxonomy Color: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.58 ▲0.292.75 ▲1.1642.55 ▲0.83
Dashboard /wp-admin2,207 ▲305.59 ▲0.0190.25 ▼8.8938.42 ▲0.79
Posts /wp-admin/edit.php2,112 ▲122.01 ▲0.0637.02 ▼3.0133.52 ▼3.67
Add New Post /wp-admin/post-new.php1,543 ▲1523.09 ▼0.03703.65 ▲29.1377.27 ▲18.48
Media Library /wp-admin/upload.php1,412 ▲154.16 ▼0.22102.53 ▼2.0142.90 ▼2.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/kantbtrue-taxonomy-color/inc/activate.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-taxonomy-color/admin/options.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-taxonomy-color/inc/init.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kantbtrue-taxonomy-color/admin/action-links.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-taxonomy-color/admin/init.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-taxonomy-color/admin/notices.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-taxonomy-color/admin/enqueue.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-taxonomy-color/process/save-term-color.php:29

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: category color, taxonomy color, tag color

kantbtrue-taxonomy-color/kantbtrue-taxonomy-color.php 92% from 13 tests

The main PHP script in "Kantbtrue Taxonomy Color" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin391 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP1455256338
CSS10027
Markdown29026

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin