77% info-tooltips-lite

Code Review | Wordpress Info Tooltips Lite

WordPress plugin Wordpress Info Tooltips Lite scored77%from 54 tests.

About plugin

  • Plugin page: info-tooltips-lite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Apr 11, 2013
  • Latest release: Apr 11, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: evgendob (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,829 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.67ms] Passed 4 tests

Server-side resources used by Wordpress Info Tooltips Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.91 ▲6.34
Dashboard /wp-admin3.31 ▼0.0448.64 ▼20.84
Posts /wp-admin/edit.php3.36 ▲0.0044.38 ▼2.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.24 ▼1.49
Media Library /wp-admin/upload.php3.23 ▲0.0035.20 ▼1.78

Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
These are issues you should consider
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/info-tooltips-lite/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/info-tooltips-lite/modules/css/images/arrow/navigator - _\302\256___.png"
Filesystem: 127 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Wordpress Info Tooltips Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲8813.53 ▼0.705.47 ▲3.7943.74 ▼0.49
Dashboard /wp-admin2,224 ▲235.85 ▼0.06102.94 ▼7.1240.73 ▼1.31
Posts /wp-admin/edit.php2,106 ▲92.04 ▲0.0237.31 ▲1.1736.68 ▲2.01
Add New Post /wp-admin/post-new.php1,432 ▼10022.63 ▼0.57530.53 ▼159.5841.23 ▼21.39
Media Library /wp-admin/upload.php1,406 ▲34.19 ▼0.0999.86 ▼4.7138.82 ▼7.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/info-tooltips-lite/wp-info-tooltips-lite.php
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/info-tooltips-lite/modules/hooks.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/info-tooltips-lite/modules/activation.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/info-tooltips-lite/modules/meta_box.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/info-tooltips-lite/modules/ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/info-tooltips-lite/modules/scripts.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/info-tooltips-lite/modules/shortcodes.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/info-tooltips-lite/modules/widgets.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/info-tooltips-lite/modules/cpt.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/info-tooltips-lite/modules/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/info-tooltips-lite/modules/profile.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Dish addition form), #2 (Menu generation form), #3 (Simple frontend menu), #4 (Menu with another design adopted ( Extended version )), #5 (Menu with another design adopted ( Extended version )), #6 (Menu with another design adopted ( Extended version )), #7 (Menu with another design adopted ( Extended version )), #8 (Menu with another design adopted ( Extended version ))
  • Contributors: Contributors not specified
You can look at the official readme.txt

info-tooltips-lite/wp-info-tooltips-lite.php 85% from 13 tests

"Wordpress Info Tooltips Lite" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("info-tooltips-lite.php" instead of "wp-info-tooltips-lite.php")
  • Description: The description should be shorter than 140 characters (currently 243 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,432 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP132711361,621
CSS51121351
HTML1400316
PO File15357124
JavaScript36120

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity104.00
▷ Minimum class complexity3.00
▷ Maximum class complexity205.00
Average method complexity6.28
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods39
▷ Static methods37.69%
▷ Public methods923.08%
▷ Protected methods3076.92%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants46
▷ Global constants46100.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
60 PNG files occupy 0.27MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/images/nonfull/navigate_right_arrow.png3.69KB0.69KB▼ 81.23%
modules/images/full/nav_right_arrow_hover.png3.55KB0.63KB▼ 82.36%
modules/css/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
modules/css/images/arrow/hori_large.png2.46KB2.05KB▼ 16.80%
modules/css/images/arrow/navigator.png0.44KB0.32KB▼ 26.99%