93% acf-flexible-content-modal

Code Review | ACF Flexible Content Modal

WordPress plugin ACF Flexible Content Modal scored 93% from 54 tests.

About plugin

  • Plugin page: acf-flexible-cont...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-5.0.3
  • WordPress version: 5.9.2
  • First release: May 25, 2016
  • Latest release: Feb 11, 2019
  • Number of updates: 28
  • Update frequency: every 35.5 days
  • Top authors: edir (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 11,245 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by ACF Flexible Content Modal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0254.16 ▲2.13
Dashboard /wp-admin3.44 ▲0.0334.29 ▼2.32
Posts /wp-admin/edit.php3.66 ▲0.0236.79 ▼0.79
Add New Post /wp-admin/post-new.php6.90 ▼0.0791.94 ▼1,187.89
Media Library /wp-admin/upload.php3.31 ▲0.0126.53 ▼0.23

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Flexible Content Modal
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.92 ▲0.335.91 ▼0.042.12 ▼0.24
Dashboard /wp-admin2,895 ▲346.03 ▼0.14120.43 ▼15.48156.36 ▼4.18
Posts /wp-admin/edit.php2,694 ▲63.23 ▼0.0162.23 ▼2.29141.17 ▼3.81
Add New Post /wp-admin/post-new.php1,752 ▼020.91 ▼0.36473.25 ▼38.06153.88 ▼11.84
Media Library /wp-admin/upload.php1,698 ▼35.51 ▼0.05142.44 ▲4.78179.10 ▼6.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/acf-flexible-content-modal/acf-flexible-content-modal.php

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Free layouts list to order easily.), #2 (Modal window to fill the contents.)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === acf-flexible-content-modal === )
You can look at the official readme.txt

acf-flexible-content-modal/acf-flexible-content-modal.php 92% from 13 tests

"ACF Flexible Content Modal" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected469 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods7100.00%
▷ Public methods7100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png80.52KB22.52KB▼ 72.04%
screenshot-1.png53.67KB19.20KB▼ 64.23%