90% acf-enhanced-message-field

Code Review | ACF Enhanced Message Field

WordPress plugin ACF Enhanced Message Field scored90%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: 6.3.1
  • 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 /11,001 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
Installer ran successfully

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

An overview of server-side resources used by ACF Enhanced Message Field
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.21 ▼6.07
Dashboard /wp-admin3.31 ▲0.0148.52 ▼2.45
Posts /wp-admin/edit.php3.37 ▲0.0149.01 ▼2.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.49 ▼20.81
Media Library /wp-admin/upload.php3.24 ▲0.0138.00 ▼1.21

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

ACF Enhanced Message Field: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.171.55 ▼0.1642.31 ▼2.12
Dashboard /wp-admin2,195 ▲155.62 ▼0.0494.74 ▲5.7641.12 ▼0.04
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0533.58 ▼6.6136.22 ▼7.78
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▲0.07689.12 ▲62.2364.07 ▼2.11
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0296.14 ▼13.7244.62 ▼4.26

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

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

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

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: php, message field, custom fields, add on, acf...

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

The entry point to "ACF Enhanced Message Field" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin295 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP395120192
JavaScript238679
Markdown117024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin