94% the-tooltip

Code Review | The Tooltip

WordPress plugin The Tooltip scored 94% 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: 5.9.2
  • 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,675 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼305.50ms] Passed 4 tests

Server-side resources used by The Tooltip
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.62 ▲1.14
Dashboard /wp-admin3.42 ▲0.0133.07 ▼6.88
Posts /wp-admin/edit.php3.65 ▲0.0138.39 ▲0.49
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.73 ▼1,214.40
Media Library /wp-admin/upload.php3.30 ▲0.0026.14 ▼1.21

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for The Tooltip
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲1115.94 ▲0.345.67 ▼0.382.28 ▼0.54
Dashboard /wp-admin2,895 ▲376.10 ▼0.11118.71 ▼25.20158.50 ▼9.42
Posts /wp-admin/edit.php2,688 ▼03.25 ▲0.0264.92 ▲3.29138.70 ▼15.21
Add New Post /wp-admin/post-new.php1,757 ▲9621.27 ▲4.74449.81 ▲24.78158.09 ▲3.37
Media Library /wp-admin/upload.php1,698 ▼05.49 ▼0.04140.91 ▲2.40185.08 ▲0.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/the-tooltip/the-tooltip.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt might help

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

The entry point to "The Tooltip" version 1.0.2 is a PHP file that has certain tags in its header comment area
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 a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23626116
CSS14048
JavaScript10012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected