90% acf-tooltip

Code Review | ACF Tooltip

WordPress plugin ACF Tooltip scored90%from 54 tests.

About plugin

  • Plugin page: acf-tooltip
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: Jan 21, 2023
  • Number of updates: 14
  • Update frequency: every 152.1 days
  • Top authors: tmconnect (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /10,286 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
Install script ran successfully

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

This is a short check of server-side resources used by ACF Tooltip
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.71 ▲1.76
Dashboard /wp-admin3.31 ▼0.0445.69 ▼13.21
Posts /wp-admin/edit.php3.36 ▲0.0048.32 ▲3.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.10 ▼24.55
Media Library /wp-admin/upload.php3.23 ▲0.0040.09 ▲5.33

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Tooltip
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.251.68 ▲0.0643.12 ▲1.79
Dashboard /wp-admin2,206 ▲214.85 ▼1.01107.86 ▲3.6441.26 ▼2.66
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0140.35 ▲2.7036.66 ▲2.43
Add New Post /wp-admin/post-new.php1,533 ▲1023.20 ▲0.03672.70 ▲1.9453.18 ▼11.25
Media Library /wp-admin/upload.php1,385 ▲34.23 ▲0.0394.15 ▼1.6441.03 ▼1.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
5 plugin tags: acf, advanced custom fields, tooltip, acfpro, instructions

acf-tooltip/acf-tooltip.php 92% from 13 tests

The primary PHP file in "ACF Tooltip" version 1.2.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,561 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34734151,908
CSS412678452
PHP14246127
PO File2202074

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin