83% acf-flexible-content-modal

Code Review | ACF Flexible Content Modal

WordPress plugin ACF Flexible Content Modal scored83%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: 6.3.1
  • 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 /12,998 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by ACF Flexible Content Modal
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.26 ▼0.46
Dashboard /wp-admin3.32 ▲0.0244.84 ▼4.02
Posts /wp-admin/edit.php3.37 ▲0.0248.48 ▼2.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.91 ▼5.77
Media Library /wp-admin/upload.php3.24 ▲0.0241.48 ▲10.54

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Flexible Content Modal
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.121.91 ▲0.2943.44 ▼1.54
Dashboard /wp-admin2,198 ▲215.69 ▲0.0884.31 ▼12.4241.28 ▼0.65
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0540.53 ▲5.7439.42 ▲0.56
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.29643.06 ▼46.6256.34 ▼10.35
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.06114.31 ▲5.4246.20 ▲0.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/acf-flexible-content-modal/acf-flexible-content-modal.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === acf-flexible-content-modal === )
  • Screenshots: These screenshots require images: #1 (Free layouts list to order easily.), #2 (Modal window to fill the contents.)
The official readme.txt might help

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

The primary PHP file in "ACF Flexible Content Modal" version 1.2.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin469 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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-1.png53.67KB19.20KB▼ 64.23%
screenshot-2.png80.52KB22.52KB▼ 72.04%