100% acf-commonmark

Code Review | Advanced Custom Fields: CommonMark Field

WordPress plugin Advanced Custom Fields: CommonMark Field scored 100% from 54 tests.

About plugin

  • Plugin page: acf-commonmark
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-4.9.7
  • WordPress version: 5.9.2
  • First release: Jul 11, 2018
  • Latest release: Jul 13, 2018
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: joppuyo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 683 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Advanced Custom Fields: CommonMark Field
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0157.46 ▲5.98
Dashboard /wp-admin3.42 ▲0.0133.16 ▼6.27
Posts /wp-admin/edit.php3.65 ▲0.0136.49 ▼3.78
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.21 ▼1,220.57
Media Library /wp-admin/upload.php3.30 ▲0.0126.05 ▼6.27

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Custom Fields: CommonMark Field
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.17 ▲0.515.90 ▼0.973.09 ▲0.04
Dashboard /wp-admin2,892 ▲346.14 ▼0.08122.58 ▼15.37180.12 ▲13.00
Posts /wp-admin/edit.php2,670 ▼243.25 ▲0.0265.43 ▲0.48202.13 ▲53.39
Add New Post /wp-admin/post-new.php1,661 ▼5616.01 ▼5.28446.07 ▼23.63205.84 ▲47.21
Media Library /wp-admin/upload.php1,695 ▼05.55 ▲0.02139.54 ▼8.64193.18 ▼12.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 smoke test targeting server-side errors
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration Passed 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
3 plugin tags: acf, markdown, advanced custom fields

acf-commonmark/acf-commonmark.php Passed 13 tests

The entry point to "Advanced Custom Fields: CommonMark Field" version 1.0.11 is a PHP file that has certain tags in its header comment area
54 characters long description:
Markdown (CommonMark) field for Advanced Custom Fields

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
Success! There were no dangerous files found in this plugin1,148 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.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
2 compressed PNG files occupy 0.07MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings