72% bluet-keywords-tooltip-generator

Code Review | Tooltipy (tooltips for WP)

WordPress plugin Tooltipy (tooltips for WP) scored72%from 54 tests.

About plugin

  • Plugin page: bluet-keywords-to...
  • Plugin version: 5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2014
  • Latest release: Nov 30, 2023
  • Number of updates: 343
  • Update frequency: every 10.0 days
  • Top authors: lebleut (100%)

Code review

54 tests

User reviews

58 reviews

Install metrics

1,000+ active /37,758 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.57MB] [CPU: ▲3.08ms] Passed 4 tests

Analyzing server-side resources used by Tooltipy (tooltips for WP)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5942.67 ▲8.32
Dashboard /wp-admin3.91 ▲0.6151.40 ▼10.49
Posts /wp-admin/edit.php3.94 ▲0.5853.34 ▲7.34
Add New Post /wp-admin/post-new.php6.54 ▲0.6593.67 ▲12.54
Media Library /wp-admin/upload.php3.74 ▲0.5139.85 ▲7.14
Families /wp-admin/edit-tags.php?taxonomy=_cat&post_type=my_keywords3.6830.21
Add /wp-admin/post-new.php?post_type=my_keywords4.0256.87
My KeyWords /wp-admin/edit.php?post_type=my_keywords3.8642.14
Settings /wp-admin/edit.php?post_type=my_keywords&page=my_keywords_settings3.7236.72

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 10 new options
New WordPress options
bluet_kw_settings
bluet_kw_style
widget_my_keywords_widget
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
tooltipy_post_type_name
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Tooltipy (tooltips for WP)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,078 ▲31614.66 ▲0.3121.93 ▲20.3737.54 ▼2.34
Dashboard /wp-admin2,227 ▲505.54 ▼0.0291.43 ▼8.4178.16 ▲34.37
Posts /wp-admin/edit.php2,144 ▲441.98 ▲0.0438.66 ▲1.1435.57 ▲0.80
Add New Post /wp-admin/post-new.php6,484 ▲4,95827.93 ▲5.01909.29 ▲337.1835.97 ▼9.41
Media Library /wp-admin/upload.php1,447 ▲534.14 ▼0.0493.10 ▼5.5077.52 ▲36.98
Families /wp-admin/edit-tags.php?taxonomy=_cat&post_type=my_keywords280.410.083.46
Add /wp-admin/post-new.php?post_type=my_keywords2,4977.65188.17122.53
My KeyWords /wp-admin/edit.php?post_type=my_keywords1,1581.9135.2829.09
Settings /wp-admin/edit.php?post_type=my_keywords&page=my_keywords_settings2,3172.8457.9857.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 10 options
    • widget_recent-comments
    • bluet_kw_settings
    • widget_my_keywords_widget
    • can_compress_scripts
    • tooltipy_post_type_name
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • bluet_kw_style
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/settings-page.php
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/advanced/supported-plugins.php
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/index.php
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/advanced/index.php
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/add-style.php
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/settings-glossary.php
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/widget.php
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/advanced/settings-page.php
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/advanced/functions.php
    • > /wp-content/plugins/bluet-keywords-tooltip-generator/keyword-posttype.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bluet-keywords-tooltip-generator/templates/admin/exclude.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bluet-keywords-tooltip-generator/templates/single-kw.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_settings_sections() in wp-content/plugins/bluet-keywords-tooltip-generator/templates/admin/style.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bluet-keywords-tooltip-generator/advanced/load-ajax.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit-tags.php?taxonomy=_cat&post_type=my_keywords
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=_cat&post_type=my_keywords - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
Please take inspiration from this readme.txt

bluet-keywords-tooltip-generator/index.php 85% from 13 tests

"Tooltipy (tooltips for WP)" version 5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 166 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bluet-keywords-tooltip-generator.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin8,906 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
CSS4536173,014
PHP187934432,945
PO File91,0391,1232,119
JavaScript8264187828

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.00
▷ Minimum class complexity10.00
▷ Maximum class complexity16.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions107
▷ Named functions8579.44%
▷ Anonymous functions2220.56%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
advanced/assets/close_button.png2.18KB1.91KB▼ 12.51%
assets/qst-mark-2.png1.63KB0.64KB▼ 60.96%
assets/qst-mark-3.png0.72KB0.60KB▼ 16.33%
assets/qst-mark-1.png1.33KB0.34KB▼ 74.58%
assets/ico_16x16.png0.80KB0.77KB▼ 3.88%