84% the-tooltip

Code Review | The Tooltip

WordPress plugin The Tooltip scored 84% from 54 tests.

About plugin

  • Plugin page: the-tooltip
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 26, 2015
  • Latest release: Aug 21, 2016
  • Number of updates: 13
  • Update frequency: every 27.8 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,829 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.58ms] Passed 4 tests

Server-side resources used by The Tooltip
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.46 ▼5.40
Dashboard /wp-admin3.32 ▲0.0247.84 ▼3.74
Posts /wp-admin/edit.php3.37 ▲0.0251.08 ▲3.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.23 ▼10.73
Media Library /wp-admin/upload.php3.25 ▲0.0236.44 ▲1.55

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

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

Browser metrics Passed 4 tests

The Tooltip: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.18 ▼1.071.69 ▼0.1738.92 ▼10.88
Dashboard /wp-admin2,203 ▲185.82 ▲0.9397.48 ▼19.2538.03 ▼6.52
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0539.84 ▲6.4934.20 ▲2.94
Add New Post /wp-admin/post-new.php1,542 ▲918.48 ▼4.68627.48 ▼26.4872.26 ▲21.54
Media Library /wp-admin/upload.php1,382 ▼34.23 ▲0.0295.80 ▼9.0341.10 ▼2.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/the-tooltip/the-tooltip.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
You can take inspiration from this readme.txt

the-tooltip/the-tooltip.php Passed 13 tests

The main file in "The Tooltip" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Simple WordPress tooltip shortcode, full customize and easy to use.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23626116
CSS14048
JavaScript10012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin