99% acf-medium-editor-field

Code Review | ACF Medium Editor Field

WordPress plugin ACF Medium Editor Field scored 99% from 54 tests.

About plugin

  • Plugin page: acf-medium-editor...
  • Plugin version: 2.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.9
  • WordPress version: 5.9.2
  • First release: Jan 4, 2017
  • Latest release: Dec 23, 2021
  • Number of updates: 32
  • Update frequency: every 56.6 days
  • Top authors: Hube2 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active / 15,465 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by ACF Medium Editor Field
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.22 ▲0.0159.98 ▼3.67
Dashboard /wp-admin4.04 ▲0.0137.73 ▼4.24
Posts /wp-admin/edit.php4.34 ▲0.0142.83 ▼0.98
Add New Post /wp-admin/post-new.php7.57 ▼0.02103.00 ▼1,172.49
Media Library /wp-admin/upload.php3.99 ▲0.0127.07 ▼1.32

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Medium Editor Field
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.79 ▼0.205.50 ▼0.292.46 ▼0.19
Dashboard /wp-admin2,895 ▲346.12 ▼0.11132.17 ▼12.93218.56 ▲53.47
Posts /wp-admin/edit.php2,688 ▲183.24 ▼0.0170.34 ▲2.63142.14 ▼44.22
Add New Post /wp-admin/post-new.php1,661 ▲2116.09 ▼4.08423.48 ▼1.94193.62 ▼19.22
Media Library /wp-admin/upload.php1,695 ▼35.54 ▲0.01151.03 ▲1.06233.83 ▲0.24

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
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Medium Editor field when toolbar is not shown), #2 (Medium Editor Settings)
The official readme.txt is a good inspiration

acf-medium-editor-field/acf-medium-editor.php 85% from 13 tests

The entry point to "ACF Medium Editor Field" version 2.6.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acf-medium-editor-field.php" instead of "acf-medium-editor.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected6,890 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PO File14747147

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity30.00
▷ Minimum class complexity2.00
▷ Maximum class complexity58.00
Average method complexity6.27
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.05MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png8.16KB6.94KB▼ 14.96%
screenshot-3.png38.24KB34.26KB▼ 10.41%
screenshot-1.png5.63KB4.55KB▼ 19.22%