84% tooltip-wp

Code Review | Tooltip Wp

WordPress plugin Tooltip Wp scored84%from 54 tests.

About plugin

  • Plugin page: tooltip-wp
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Feb 14, 2015
  • Latest release: Nov 19, 2017
  • Number of updates: 24
  • Update frequency: every 42.1 days
  • Top authors: themepoints (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,516 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
Installer ran successfully

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

A check of server-side resources used by Tooltip Wp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.97 ▼2.18
Dashboard /wp-admin3.34 ▼0.0147.32 ▼14.30
Posts /wp-admin/edit.php3.39 ▲0.0348.14 ▲2.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.51 ▼3.18
Media Library /wp-admin/upload.php3.27 ▲0.0333.34 ▼2.35

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Tooltip Wp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.82 ▼0.8210.39 ▲8.7338.70 ▼5.52
Dashboard /wp-admin2,233 ▲485.12 ▼0.73110.35 ▼6.7442.86 ▼0.48
Posts /wp-admin/edit.php2,121 ▲352.30 ▲0.3138.64 ▲1.8335.06 ▲2.15
Add New Post /wp-admin/post-new.php1,533 ▲1423.37 ▼0.16633.15 ▼43.1847.09 ▼12.56
Media Library /wp-admin/upload.php1,415 ▲304.53 ▲0.3294.05 ▼21.3041.21 ▼11.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tooltip-wp/admin-page.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: animated tooltip, nice tooltip, tooltip, responsive, css3 tooltips...

tooltip-wp/index.php 92% from 13 tests

The entry point to "Tooltip Wp" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tooltip-wp.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin596 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP211540538
CSS11258

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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