94% taxonomy-icons

Code Review | Taxonomy Icons

WordPress plugin Taxonomy Icons scored 94% from 54 tests.

About plugin

  • Plugin page: taxonomy-icons
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7.2
  • WordPress version: 5.8.1
  • First release: Feb 3, 2015
  • Latest release: Jun 21, 2021
  • Number of updates: 15
  • Update frequency: every 155.6 days
  • Top authors: McGuive7 (66.67%)aaronbmm (40%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 4,514 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▼133.67ms] Passed 4 tests

This is a short check of server-side resources used by Taxonomy Icons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.18 ▲0.4643.58 ▲15.12
Dashboard /wp-admin3.46 ▲0.4047.25 ▲6.41
Posts /wp-admin/edit.php3.51 ▲0.4046.22 ▲5.49
Add New Post /wp-admin/post-new.php5.76 ▲0.3282.86 ▼558.53
Media Library /wp-admin/upload.php3.34 ▲0.3435.83 ▲11.97

Server storage [IO: ▲0.93MB] [DB: ▲0.03MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Taxonomy Icons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,691 ▲9616.27 ▲0.697.09 ▼7.2745.30 ▼4.64
Dashboard /wp-admin2,982 ▲486.03 ▲0.10140.28 ▼5.83111.09 ▼5.11
Posts /wp-admin/edit.php2,747 ▲82.70 ▼0.0064.73 ▼2.4192.58 ▼3.47
Add New Post /wp-admin/post-new.php1,897 ▲28215.71 ▼5.61354.53 ▲82.86105.85 ▼5.12
Media Library /wp-admin/upload.php1,818 ▲85.02 ▼0.03165.91 ▲16.12125.14 ▲5.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/taxonomy-icons/taxonomy-icons.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

taxonomy-icons/taxonomy-icons.php Passed 13 tests

"Taxonomy Icons" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Add custom icons to your taxonom terms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin4,623 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS68752,131
JavaScript432171,040
SVG100565
PHP3279846563
Markdown31050276
JSON10048

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods44
▷ Static methods12.27%
▷ Public methods2250.00%
▷ Protected methods00.00%
▷ Private methods2250.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.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
No PNG images were found in this plugin