10% responsive-mobile-friendly-tooltip

Code Review | Responsive Mobile-Friendly Tooltip

WordPress plugin Responsive Mobile-Friendly Tooltip scored10%from 54 tests.

About plugin

  • Plugin page: responsive-mobile...
  • Plugin version: 1.6.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2013
  • Latest release: Dec 18, 2017
  • Number of updates: 50
  • Update frequency: every 34.1 days
  • Top authors: ItayXD (74%)mirkolofio (28%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active /30,643 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/responsive-mobile-friendly-tooltip/responsive-tooltip.php+92
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.88MB] [CPU: ▼30.25ms] Passed 4 tests

An overview of server-side resources used by Responsive Mobile-Friendly Tooltip
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.68 ▼6.78
Dashboard /wp-admin3.07 ▼0.2424.03 ▼23.38
Posts /wp-admin/edit.php3.07 ▼0.2928.09 ▼20.77
Add New Post /wp-admin/post-new.php3.07 ▼2.8226.33 ▼66.96
Media Library /wp-admin/upload.php3.07 ▼0.1623.22 ▼9.88
Responsive Mobile-Friendly Tooltip /wp-admin/options-general.php?page=RMFtooltip-options3.0723.44

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
RMFtooltip_version

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Mobile-Friendly Tooltip
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲14914.43 ▲0.272.48 ▲0.7544.43 ▲2.87
Dashboard /wp-admin2,272 ▲814.85 ▼0.02107.93 ▲3.9240.31 ▼2.49
Posts /wp-admin/edit.php2,095 ▲32.06 ▲0.0439.98 ▲0.0534.97 ▼3.11
Add New Post /wp-admin/post-new.php1,523 ▼2823.45 ▲5.32689.53 ▲80.1948.54 ▼0.86
Media Library /wp-admin/upload.php1,394 ▲64.20 ▼0.0095.47 ▼13.9043.17 ▼0.99
Responsive Mobile-Friendly Tooltip /wp-admin/options-general.php?page=RMFtooltip-options8602.0523.7326.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/responsive-mobile-friendly-tooltip/responsive-tooltip-admin-page.php+41
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • RMFtooltip_version
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=RMFtooltip-options
    • > Notice in wp-content/plugins/responsive-mobile-friendly-tooltip/responsive-tooltip-admin-page.php+41
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=RMFtooltip-options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=RMFtooltip-options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=RMFtooltip-options
    • > Notice in wp-content/plugins/responsive-mobile-friendly-tooltip/responsive-tooltip-admin-page.php+112
    Undefined index: chkbx_replace_css
    • > GET request to /wp-admin/options-general.php?page=RMFtooltip-options
    • > Notice in wp-content/plugins/responsive-mobile-friendly-tooltip/responsive-tooltip-admin-page.php+126
    Undefined index: textarea_css

SRP 50% 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 fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-mobile-friendly-tooltip/responsive-tooltip-admin-page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-mobile-friendly-tooltip/responsive-tooltip.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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === responsive-mobile-friendly-tooltip === )
Please take inspiration from this readme.txt

responsive-mobile-friendly-tooltip/responsive-tooltip.php 92% from 13 tests

Analyzing the main PHP file in "Responsive Mobile-Friendly Tooltip" version 1.6.6
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-mobile-friendly-tooltip.php" instead of "responsive-tooltip.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin629 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS2303246
PHP21727227
JavaScript2308156

PHP code Passed 2 tests

A short 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.27
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
RMFtooltipbutton.png2.27KB1.61KB▼ 29.08%