84% tooltipster

Code Review | Tooltipster

WordPress plugin Tooltipster scored84%from 54 tests.

About plugin

  • Plugin page: tooltipster
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2014
  • Latest release: Dec 3, 2014
  • Number of updates: 15
  • Update frequency: every 0.2 days
  • Top authors: rukon (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,380 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Tooltipster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.84 ▲1.77
Dashboard /wp-admin3.31 ▼0.0447.97 ▼8.43
Posts /wp-admin/edit.php3.36 ▲0.0045.48 ▼1.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.33 ▼20.93
Media Library /wp-admin/upload.php3.23 ▲0.0034.51 ▼2.12

Server storage [IO: ▲0.27MB] [DB: ▲0.07MB] 67% from 3 tests

Filesystem and database footprint
These are issues you should consider
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/tooltipster/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/tooltipster/banner-772\303\227250.jpg"
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Tooltipster: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.49 ▼0.869.00 ▲7.3441.56 ▼2.93
Dashboard /wp-admin2,192 ▲155.48 ▼0.1881.76 ▼8.5943.14 ▼1.79
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0034.94 ▲0.0332.41 ▼8.24
Add New Post /wp-admin/post-new.php1,535 ▲718.31 ▼5.22653.13 ▼11.7861.83 ▲4.89
Media Library /wp-admin/upload.php1,400 ▲34.27 ▲0.08102.89 ▼11.0445.52 ▼2.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tooltipster/tooltipster.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Tooltip with Image), #2 (Tooltip with Headline), #3 (Tooltip content)
The official readme.txt is a good inspiration

tooltipster/tooltipster.php Passed 13 tests

The main PHP script in "Tooltipster" version 1.2 is automatically included on every request by WordPress
47 characters long description:
Tooltipster is a free wordpress tooltip plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin418 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS5249365
PHP14952
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions2
▷ Named functions2100.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
1 PNG file occupies 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png234.95KB72.89KB▼ 68.98%