83% tooltip-label-icon-addon-for-wpforms

Code Review | Tooltip & Label Icon Addon For WPForms

WordPress plugin Tooltip & Label Icon Addon For WPForms scored83%from 54 tests.

About plugin

  • Plugin page: tooltip-label-ico...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 24, 2022
  • Latest release: Oct 25, 2022
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: muzammilmotiwala20 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Tooltip & Label Icon Addon For WPForms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.52 ▼0.76
Dashboard /wp-admin3.31 ▲0.0150.90 ▼3.92
Posts /wp-admin/edit.php3.36 ▲0.0150.80 ▼3.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.12 ▼8.89
Media Library /wp-admin/upload.php3.24 ▲0.0136.73 ▲2.02

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Tooltip & Label Icon Addon For WPForms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.51 ▲0.162.33 ▲0.2444.32 ▼6.18
Dashboard /wp-admin2,202 ▲285.60 ▼0.0786.68 ▼9.6040.46 ▼11.83
Posts /wp-admin/edit.php2,104 ▲71.97 ▲0.0135.45 ▼2.1631.90 ▼9.70
Add New Post /wp-admin/post-new.php1,530 ▲221.17 ▼2.13663.65 ▼43.6661.22 ▲10.40
Media Library /wp-admin/upload.php1,398 ▼24.22 ▲0.0396.43 ▼15.0544.58 ▲0.50

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tooltip-label-icon-addon-for-wpforms/wpforms-label-icon-tooltip.php:15

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (label icon preview image), #2 (tooltip preview image), #3 (tooltip & label icon settings)
The official readme.txt might help

tooltip-label-icon-addon-for-wpforms/wpforms-label-icon-tooltip.php 85% from 13 tests

"Tooltip & Label Icon Addon For WPForms" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tooltip-label-icon-addon-for-wpforms.php" instead of "wpforms-label-icon-tooltip.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,325 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS242531,232
PHP191185
JavaScript2007
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin