84% easy-tooltips

Code Review | Easy Tooltips

WordPress plugin Easy Tooltips scored84%from 54 tests.

About plugin

  • Plugin page: easy-tooltips
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 16, 2020
  • Latest release: Nov 19, 2020
  • Number of updates: 16
  • Update frequency: every 0.4 days
  • Top authors: crockdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼6.29ms] Passed 4 tests

Analyzing server-side resources used by Easy Tooltips
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1443.96 ▲3.90
Dashboard /wp-admin3.51 ▲0.1645.78 ▼14.10
Posts /wp-admin/edit.php3.56 ▲0.2048.48 ▲6.31
Add New Post /wp-admin/post-new.php6.03 ▲0.1483.64 ▼18.43
Media Library /wp-admin/upload.php3.37 ▲0.1436.30 ▲3.47
Easy Tooltips /wp-admin/options-general.php?page=easy-tooltips-setting-admin3.3329.91

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 171 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Tooltips
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.33 ▼0.988.07 ▲6.1941.84 ▼1.46
Dashboard /wp-admin2,207 ▲165.85 ▲0.97100.78 ▼6.6938.76 ▼4.71
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0137.28 ▲2.0531.98 ▼3.24
Add New Post /wp-admin/post-new.php1,522 ▲323.22 ▲0.14586.79 ▼59.5357.26 ▲2.45
Media Library /wp-admin/upload.php1,392 ▲14.26 ▲0.0996.16 ▲0.0442.91 ▼1.60
Easy Tooltips /wp-admin/options-general.php?page=easy-tooltips-setting-admin8532.0325.3728.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 98× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php:68
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractSyslogHandler' not found in wp-content/plugins/easy-tooltips/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

easy-tooltips/easy-tooltips.php Passed 13 tests

The principal PHP file in "Easy Tooltips" v. 1.1.1 is loaded by WordPress automatically on each request
110 characters long description:
Easily add tooltips to your wordpress site. You can define tooltip color settings in Settings => Easy Tooltips

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
There were no executable files found in this plugin9,689 lines of code in 164 files:
LanguageFilesBlank linesComment linesLines of code
PHP1402,1234,8527,933
Markdown72650797
CSS400333
JavaScript5232399309
JSON700305
XML14312

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.91
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces16
Interfaces11
Traits5
Classes117
▷ Abstract classes86.84%
▷ Concrete classes10993.16%
▷ Final classes21.83%
Methods721
▷ Static methods476.52%
▷ Public methods50369.76%
▷ Protected methods15421.36%
▷ Private methods648.88%
Functions21
▷ Named functions29.52%
▷ Anonymous functions1990.48%
Constants68
▷ Global constants34.41%
▷ Class constants6595.59%
▷ Public constants4163.08%

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
There were not PNG files found in your plugin