83% wp-easy-tooltips

Code Review | WP Easy Tooltips

WordPress plugin WP Easy Tooltips scored83%from 54 tests.

About plugin

  • Plugin page: wp-easy-tooltips
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4
  • WordPress version: 6.3.1
  • First release: Dec 9, 2015
  • Latest release: Dec 9, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: kywyz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,325 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: ▼7.22ms] Passed 4 tests

An overview of server-side resources used by WP Easy Tooltips
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.24 ▼1.40
Dashboard /wp-admin3.32 ▲0.0147.38 ▼11.67
Posts /wp-admin/edit.php3.37 ▲0.0155.97 ▲6.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.65 ▼19.04
Media Library /wp-admin/upload.php3.24 ▲0.0138.93 ▲3.24

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Easy Tooltips
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.45 ▼0.928.12 ▲6.3442.48 ▲0.84
Dashboard /wp-admin2,192 ▲155.51 ▼0.0686.18 ▼7.0938.15 ▼3.81
Posts /wp-admin/edit.php2,097 ▼62.03 ▲0.0735.27 ▼3.0235.92 ▼0.75
Add New Post /wp-admin/post-new.php1,526 ▼223.26 ▼0.08693.24 ▲44.3058.42 ▲8.34
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.02100.38 ▲1.1942.56 ▼0.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-tooltips/wp-easy-tooltips.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (An example of a tooltip with an image in a post.)
The official readme.txt is a good inspiration

wp-easy-tooltips/wp-easy-tooltips.php 92% from 13 tests

This is the main PHP file of "WP Easy Tooltips" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin165 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1219110
PHP171355

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.55MB with 0.40MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png561.76KB151.17KB▼ 73.09%