79% text-hover

Code Review | Text Hover

WordPress plugin Text Hover scored 79% from 54 tests.

About plugin

  • Plugin page: text-hover
  • Plugin version: 4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: Jul 15, 2009
  • Latest release: Mar 23, 2022
  • Number of updates: 29
  • Update frequency: every 161.5 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

3,000+ active / 58,669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.35ms] Passed 4 tests

An overview of server-side resources used by Text Hover
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.53 ▼1.78
Dashboard /wp-admin3.37 ▲0.0760.75 ▲7.62
Posts /wp-admin/edit.php3.48 ▲0.1359.40 ▼1.07
Add New Post /wp-admin/post-new.php5.95 ▲0.07110.82 ▼8.76
Media Library /wp-admin/upload.php3.29 ▲0.0744.43 ▼9.80
Text Hover /wp-admin/options-general.php?page=text-hover/text-hover.php3.2738.41

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Text Hover
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16413.88 ▼0.4914.79 ▲3.34123.07 ▼4.46
Dashboard /wp-admin2,195 ▲165.85 ▼0.05190.28 ▲11.62167.82 ▲92.87
Posts /wp-admin/edit.php2,101 ▲122.05 ▼0.0252.91 ▼49.76244.85 ▲124.55
Add New Post /wp-admin/post-new.php1,374 ▼13217.18 ▼4.10794.86 ▲53.50137.07 ▲38.15
Media Library /wp-admin/upload.php1,397 ▲124.18 ▼0.15206.25 ▼5.10260.87 ▲128.50
Text Hover /wp-admin/options-general.php?page=text-hover/text-hover.php1,0282.2580.76196.66

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/text-hover/tests/phpunit/bootstrap.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/text-hover/tests/phpunit/bootstrap.php on line 19
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/text-hover/tests/phpunit/bootstrap.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: tooltips, acronyms, abbreviations, help, terms...

text-hover/text-hover.php Passed 13 tests

This is the main PHP file of "Text Hover" version 4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
138 characters long description:
Add hover text (aka tooltips) to content in posts. Handy for providing explanations of names, terms, phrases, abbreviations, and acronyms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,294 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP64507651,688
Markdown41120549
Bourne Shell16221
CSS20018
XML10014
JavaScript2124

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity48.50
▷ Minimum class complexity3.00
▷ Maximum class complexity140.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes133.33%
Methods166
▷ Static methods137.83%
▷ Public methods14687.95%
▷ Protected methods2012.05%
▷ Private methods00.00%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
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
c2c_minilogo.png3.49KB1.91KB▼ 45.43%