90% wp-term-icons

Code Review | WP Term Icons

WordPress plugin WP Term Icons scored 90% from 54 tests.

About plugin

  • Plugin page: wp-term-icons
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 5.8.1
  • First release: Aug 24, 2015
  • Latest release: Apr 23, 2018
  • Number of updates: 13
  • Update frequency: every 74.8 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 4,640 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼146.56ms] Passed 4 tests

Analyzing server-side resources used by WP Term Icons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1842.45 ▲23.35
Dashboard /wp-admin3.13 ▲0.0745.09 ▼2.04
Posts /wp-admin/edit.php3.18 ▲0.0743.07 ▼3.41
Add New Post /wp-admin/post-new.php5.48 ▲0.0587.08 ▼584.38
Media Library /wp-admin/upload.php3.07 ▲0.0732.45 ▲3.59

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
wpdb_term_icon_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Term Icons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.21 ▲0.2212.45 ▲1.5848.12 ▼4.67
Dashboard /wp-admin2,967 ▲365.89 ▼0.02139.43 ▼8.53104.58 ▼4.82
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0169.55 ▼1.0584.08 ▼5.15
Add New Post /wp-admin/post-new.php1,672 ▼1,98218.85 ▼0.08411.52 ▼79.93106.30 ▼0.80
Media Library /wp-admin/upload.php1,810 ▲35.02 ▼0.05154.59 ▼0.82118.09 ▲6.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • wpdb_term_icon_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
6 plugin tags: taxonomy, meta, term, icons, icon...

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

"WP Term Icons" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Pretty icons for categories, tags, and other taxonomy 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
No dangerous file extensions were detected594 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22021323
PHP175202183
CSS11055
Markdown119033

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods17
▷ Static methods317.65%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin