68% tooltip-ck

Code Review | Tooltip CK

WordPress plugin Tooltip CK scored68%from 54 tests.

About plugin

  • Plugin page: tooltip-ck
  • Plugin version: 2.2.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: May 5, 2014
  • Latest release: Dec 12, 2021
  • Number of updates: 69
  • Update frequency: every 40.3 days
  • Top authors: ced1870 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active /27,928 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.73ms] Passed 4 tests

A check of server-side resources used by Tooltip CK
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3347.82 ▲8.93
Dashboard /wp-admin3.36 ▲0.0144.42 ▼13.92
Posts /wp-admin/edit.php3.41 ▲0.0546.62 ▲1.07
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.95 ▼12.08
Media Library /wp-admin/upload.php3.29 ▲0.0533.68 ▼1.97
Tooltip CK /wp-admin/options-general.php?page=tooltip-ck3.3737.72

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Tooltip CK
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.83 ▼0.578.89 ▲7.1641.84 ▲1.10
Dashboard /wp-admin2,199 ▲195.58 ▼0.0782.90 ▼6.4337.80 ▼1.84
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0233.54 ▼3.1035.02 ▼3.43
Add New Post /wp-admin/post-new.php1,529 ▲123.11 ▲0.08653.71 ▼67.5551.38 ▲0.90
Media Library /wp-admin/upload.php1,404 ▲14.29 ▲0.1094.52 ▼4.6044.26 ▲0.67
Tooltip CK /wp-admin/options-general.php?page=tooltip-ck1,5973.4248.8992.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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 items
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tooltip-ck/interfaces/options.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tooltip-ck/interfaces/options-styles.php:1
    • > PHP Warning
      Use of undefined constant TOOLTIPCK_WEBSITE - assumed 'TOOLTIPCK_WEBSITE' (this will throw an Error in a future version of PHP) in wp-content/plugins/tooltip-ck/interfaces/options.php on line 4
    • > PHP Warning
      Use of undefined constant TOOLTIPCK_MEDIA_URL - assumed 'TOOLTIPCK_MEDIA_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/tooltip-ck/interfaces/options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/tooltip-ck/interfaces/options-effects.php:2
    • > PHP Warning
      Use of undefined constant TOOLTIPCK_MEDIA_URL - assumed 'TOOLTIPCK_MEDIA_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/tooltip-ck/interfaces/options.php on line 1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/tooltip-ck/interfaces/options-advanced.php:2
    • > PHP Warning
      Use of undefined constant TOOLTIPCK_MEDIA_URL - assumed 'TOOLTIPCK_MEDIA_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/tooltip-ck/interfaces/options.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=tooltip-ck
    • > Network (severe)
    wp-content/plugins/tooltip-ck/assets/jscolor/jscolor.css - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #3, #4, #5 in tooltip-ck/assets to your readme.txt
The official readme.txt is a good inspiration

tooltip-ck/tooltip-ck.php 92% from 13 tests

"Tooltip CK" version 2.2.15's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)

Code Analysis 5% from 3 tests

File types 0% from 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
These items require your attention
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .url - Internet Shortcut in Firefox, IE, Chrome, Safari
      • wp-content/plugins/tooltip-ck/assets/jscolor/Demos of JSColor.URL
3,324 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP112736701,626
JavaScript3183971,194
CSS35844365
PO File16272137
HTML2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity40.14
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods81
▷ Static methods1518.52%
▷ Public methods6074.07%
▷ Protected methods22.47%
▷ Private methods1923.46%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants1460.87%
▷ Class constants939.13%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
31 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/chart_curve.png0.69KB0.76KB0.00%
images/bg_no-repeat.png0.19KB0.19KB▼ 1.01%
images/border_radius_bl.png0.51KB0.71KB0.00%
images/padding.png0.25KB0.27KB0.00%
images/logo_tooltipck_64.png3.33KB2.61KB▼ 21.73%