73% kento-fancy-tags-tag-icon

Code Review | Kento Fancy Tags Icon

WordPress plugin Kento Fancy Tags Icon scored 73% from 54 tests.

About plugin

  • Plugin page: kento-fancy-tags-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Jun 9, 2015
  • Number of updates: 15
  • Update frequency: every 32.7 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,208 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.91MB] [CPU: ▼52.46ms] Passed 4 tests

Server-side resources used by Kento Fancy Tags Icon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.399.36 ▼34.84
Dashboard /wp-admin2.09 ▼1.215.21 ▼43.75
Posts /wp-admin/edit.php2.09 ▼1.266.52 ▼39.53
Add New Post /wp-admin/post-new.php2.09 ▼3.795.97 ▼91.72
Media Library /wp-admin/upload.php2.09 ▼1.135.33 ▼31.49

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Kento Fancy Tags Icon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.65 ▼0.638.98 ▲7.2341.19 ▼5.92
Dashboard /wp-admin2,229 ▲415.88 ▲0.9899.51 ▼6.4040.15 ▼5.78
Posts /wp-admin/edit.php2,112 ▲262.17 ▲0.1440.71 ▲3.8535.68 ▲1.20
Add New Post /wp-admin/post-new.php1,534 ▲2023.35 ▲5.85602.87 ▼101.5460.35 ▼5.03
Media Library /wp-admin/upload.php1,411 ▲234.35 ▲0.2399.46 ▼20.0446.66 ▼1.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/kento-fancy-tags-tag-icon/index.php:14
    • > PHP Notice
      Undefined index: kft_hidden in wp-content/plugins/kento-fancy-tags-tag-icon/kento-fancy-tags-admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kento-fancy-tags-tag-icon/kento-fancy-tags-admin.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Settings), #2 (Tag desription box on mouse hover with tag icon.), #3 (Tag desription box on mouse hover without tag icon.), #4 (Loading animation on mouse hover.), #5 (Edit tag description.)
You can look at the official readme.txt

kento-fancy-tags-tag-icon/index.php 92% from 13 tests

"Kento Fancy Tags Icon" version 1.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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kento-fancy-tags-tag-icon.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin337 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1614150
PHP29914150
JavaScript134037

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
7 PNG files occupy 0.16MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tag-images/google.png1.29KB1.40KB0.00%
screenshot-1.png10.68KB5.50KB▼ 48.44%
screenshot-4.png35.87KB18.40KB▼ 48.70%
screenshot-3.png43.85KB22.00KB▼ 49.82%
screenshot-5.png31.32KB15.24KB▼ 51.33%