100% acf-enhanced-message-field

Code Review | ACF Enhanced Message Field

WordPress plugin ACF Enhanced Message Field scored 100% from 54 tests.

About plugin

  • Plugin page: acf-enhanced-mess...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.0
  • WordPress version: 5.9.2
  • First release: Oct 20, 2014
  • Latest release: Apr 30, 2016
  • Number of updates: 11
  • Update frequency: every 50.7 days
  • Top authors: drebbits.web (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 10,088 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.01MB] [CPU: ▼296.17ms] Passed 4 tests

Analyzing server-side resources used by ACF Enhanced Message Field
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0252.50 ▲3.14
Dashboard /wp-admin3.42 ▲0.0133.55 ▼0.27
Posts /wp-admin/edit.php3.65 ▲0.0137.61 ▲0.95
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.32 ▼1,185.60
Media Library /wp-admin/upload.php3.30 ▲0.0125.19 ▲0.26

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACF Enhanced Message Field
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.83 ▲0.056.81 ▲1.012.08 ▼0.90
Dashboard /wp-admin2,895 ▲376.12 ▼0.03119.72 ▼12.63156.46 ▼2.03
Posts /wp-admin/edit.php2,691 ▼33.24 ▲0.0066.46 ▲4.14150.77 ▲14.04
Add New Post /wp-admin/post-new.php1,711 ▼4120.77 ▼0.12431.39 ▼20.10161.40 ▲6.50
Media Library /wp-admin/upload.php1,701 ▲35.49 ▼0.06144.24 ▲6.03189.90 ▲5.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
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 smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: message, add on, message field, custom fields, acf...

acf-enhanced-message-field/acf-enhanced-message.php 92% from 13 tests

This is the main PHP file of "ACF Enhanced Message Field" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-enhanced-message-field.php" instead of "acf-enhanced-message.php")

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
No dangerous file extensions were detected295 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP395120192
JavaScript238679
Markdown117024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin