90% acf-additional-hint

Code Review | ACF Additional Hint

WordPress plugin ACF Additional Hint scored90%from 54 tests.

About plugin

  • Plugin page: acf-additional-hint
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Dec 18, 2019
  • Latest release: Jan 22, 2021
  • Number of updates: 8
  • Update frequency: every 50.3 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,277 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.79ms] Passed 4 tests

Server-side resources used by ACF Additional Hint
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.19 ▼5.96
Dashboard /wp-admin3.31 ▼0.0356.81 ▼13.66
Posts /wp-admin/edit.php3.36 ▲0.0154.33 ▲0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.26 ▼1.16
Media Library /wp-admin/upload.php3.23 ▲0.0136.94 ▼2.38

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ACF Additional Hint
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼0.991.72 ▼0.0842.67 ▲1.97
Dashboard /wp-admin2,206 ▲185.91 ▲1.01103.40 ▼13.0439.40 ▼4.92
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0240.66 ▼3.4134.38 ▼0.39
Add New Post /wp-admin/post-new.php1,533 ▲1423.25 ▼0.14678.43 ▲0.7154.57 ▼9.53
Media Library /wp-admin/upload.php1,391 ▲34.33 ▲0.18102.21 ▼7.6547.05 ▲0.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: advanced, hint, acf, custom, help...

acf-additional-hint/acf-additional-hint.php Passed 13 tests

The primary PHP file in "ACF Additional Hint" version 1.3 is used by WordPress to initiate all plugin functionality
44 characters long description:
A plugin to add help/hint text in ACF field.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected271 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1166115
PHP1247094
JavaScript17631
PO File18831

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin