94% wp-jquery-qtip

Code Review | WP jQuery qTip

WordPress plugin WP jQuery qTip scored 94% from 54 tests.

About plugin

  • Plugin page: wp-jquery-qtip
  • Plugin version: 1.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.2
  • WordPress version: 5.8.1
  • First release: Jan 9, 2013
  • Latest release: Jul 18, 2015
  • Number of updates: 8
  • Update frequency: every 115.0 days
  • Top authors: scriptrunner (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active / 3,028 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼140.59ms] Passed 4 tests

A check of server-side resources used by WP jQuery qTip
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.42 ▲11.18
Dashboard /wp-admin3.06 ▲0.0141.11 ▲7.14
Posts /wp-admin/edit.php3.12 ▲0.0140.94 ▼5.86
Add New Post /wp-admin/post-new.php5.42 ▼0.0184.06 ▼568.28
Media Library /wp-admin/upload.php3.01 ▲0.0135.21 ▲4.64
WP jQuery qTip /wp-admin/options-general.php?page=map2.9825.85

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options
wp_jquery_qtip

Browser metrics Passed 4 tests

An overview of browser requirements for WP jQuery qTip
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲12016.03 ▲0.509.79 ▲1.5852.97 ▲0.81
Dashboard /wp-admin2,997 ▲635.97 ▼0.08131.19 ▼10.73105.15 ▼6.79
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0065.75 ▼0.3790.10 ▼1.71
Add New Post /wp-admin/post-new.php3,692 ▲2,02015.13 ▼3.75421.34 ▲37.28115.71 ▲5.78
Media Library /wp-admin/upload.php1,809 ▼15.01 ▲0.01142.48 ▼10.80113.77 ▼2.95
WP jQuery qTip /wp-admin/options-general.php?page=map1,4492.0656.9076.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/wp-jquery-qtip/wp-jquery-qtip.php:216

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Screenshots: These screenshots do not have images: #1 (**WP jQuery qTip Settings** - Settings), #2 (**WP jQuery qTip Title Attribute** - Frontend)
Please take inspiration from this readme.txt

wp-jquery-qtip/wp-jquery-qtip.php 92% from 13 tests

The principal PHP file in "WP jQuery qTip" v. 1.9.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,102 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63443361,503
CSS312773423
PHP24532176

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin