83% accessible-tooltips

Code Review | Accessible Tooltips

WordPress plugin Accessible Tooltips scored83%from 54 tests.

About plugin

  • Plugin page: accessible-tooltips
  • Plugin version: 1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.6
  • WordPress version: 6.3.1
  • First release: Jan 22, 2021
  • Latest release: Jan 22, 2021
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: toiledemaitre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /675 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.07MB] [CPU: ▼11.31ms] Passed 4 tests

This is a short check of server-side resources used by Accessible Tooltips
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0029.69 ▼12.85
Dashboard /wp-admin3.41 ▲0.1053.51 ▼2.68
Posts /wp-admin/edit.php3.52 ▲0.1646.68 ▼13.20
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.88 ▼16.51
Media Library /wp-admin/upload.php3.33 ▲0.1035.27 ▼1.91
Tooltips /wp-admin/edit.php?post_type=accessible_tooltip3.3738.87
Settings /wp-admin/edit.php?post_type=accessible_tooltip&page=accessible-tooltips3.3130.99
Add New /wp-admin/post-new.php?post_type=accessible_tooltip3.4449.65

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 13 new options
New WordPress options
accessible_tooltips_placement
accessible_tooltips_hide_on_click
widget_recent-comments
widget_theysaidso_widget
accessible_tooltips_interactive_border_size
db_upgraded
widget_recent-posts
can_compress_scripts
accessible_tooltips_custom_css
accessible_tooltips_theme
...

Browser metrics Passed 4 tests

An overview of browser requirements for Accessible Tooltips
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14514.50 ▲0.154.98 ▲3.0749.32 ▲9.38
Dashboard /wp-admin2,243 ▲525.82 ▲0.78107.33 ▼0.2942.00 ▼1.41
Posts /wp-admin/edit.php2,129 ▲402.00 ▼0.0336.10 ▲1.2833.89 ▼3.44
Add New Post /wp-admin/post-new.php1,558 ▲3917.47 ▼5.60657.12 ▲36.0567.65 ▲13.50
Media Library /wp-admin/upload.php1,428 ▲404.18 ▲0.0194.03 ▼12.4740.56 ▼2.64
Tooltips /wp-admin/edit.php?post_type=accessible_tooltip1,0931.9331.4237.29
Settings /wp-admin/edit.php?post_type=accessible_tooltip&page=accessible-tooltips9662.0325.3824.44
Add New /wp-admin/post-new.php?post_type=accessible_tooltip2,2327.59167.1066.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • widget_recent-posts
    • accessible_tooltips_custom_css
    • accessible_tooltips_theme
    • accessible_tooltips_interactive_border_size
    • db_upgraded
    • accessible_tooltips_fallback_placement
    • can_compress_scripts
    • widget_recent-comments
    • accessible_tooltips_allow_html
    • accessible_tooltips_placement
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/accessible-tooltips/settings_page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AccessibleTooltips\\add_action() in wp-content/plugins/accessible-tooltips/accessible-tooltips.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Contributors: Contributors not specified
  • Plugin Name: You should set the name of your plugin on the first line ( === accessible-tooltips === )
Please take inspiration from this readme.txt

accessible-tooltips/accessible-tooltips.php 92% from 13 tests

The principal PHP file in "Accessible Tooltips" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 158 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
Good job! No executable or dangerous file extensions detected17,179 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JSON50016,706
PHP33724273
JavaScript7820103
PO File1271074
Markdown17017
CSS1004
Bourne Shell1001
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
No PNG files were detected