100% acf-tooltip

Code Review | ACF Tooltip

WordPress plugin ACF Tooltip scored 100% from 54 tests.

About plugin

  • Plugin page: acf-tooltip
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 5.9.2
  • First release: Mar 21, 2017
  • Latest release: Aug 22, 2020
  • Number of updates: 13
  • Update frequency: every 95.9 days
  • Top authors: tmconnect (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active / 8,515 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼296.29ms] Passed 4 tests

This is a short check of server-side resources used by ACF Tooltip
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.00 ▲4.17
Dashboard /wp-admin3.41 ▲0.0033.13 ▼1.07
Posts /wp-admin/edit.php3.64 ▲0.0036.76 ▲0.50
Add New Post /wp-admin/post-new.php6.89 ▼0.08102.01 ▼1,179.35
Media Library /wp-admin/upload.php3.29 ▼0.0122.00 ▼5.23

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACF Tooltip
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.21 ▲0.545.51 ▼0.272.68 ▼0.08
Dashboard /wp-admin2,888 ▲276.11 ▼0.06115.56 ▼19.99154.05 ▼2.79
Posts /wp-admin/edit.php2,688 ▼03.23 ▼0.0163.46 ▲0.18138.73 ▼4.28
Add New Post /wp-admin/post-new.php1,661 ▼2916.39 ▼2.31398.75 ▼4.47152.58 ▼2.84
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.05138.67 ▼15.27186.74 ▼11.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: tooltip, advanced custom fields, acfpro, instructions, acf

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

The main PHP script in "ACF Tooltip" version 1.2.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
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

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were 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
No PNG files were detected