99% acf-flexible-content-layout-thumbnail

Code Review | ACF Flexible Content Layout Thumbnail

WordPress plugin ACF Flexible Content Layout Thumbnail scored 99% from 54 tests.

About plugin

  • Plugin page: acf-flexible-cont...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.9.7
  • WordPress version: 5.9.2
  • First release: Jul 9, 2018
  • Latest release: Jul 11, 2018
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: webcentar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 620 total downloads


Plugin footprint Passed 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.32MB] [CPU: ▼307.53ms] Passed 4 tests

An overview of server-side resources used by ACF Flexible Content Layout Thumbnail
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0354.98 ▲3.63
Dashboard /wp-admin3.31 ▼0.1022.85 ▼14.26
Posts /wp-admin/edit.php3.42 ▼0.2326.67 ▼12.47
Add New Post /wp-admin/post-new.php6.01 ▼0.9669.70 ▼1,200.71
Media Library /wp-admin/upload.php3.31 ▲0.0220.97 ▼2.69

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Flexible Content Layout Thumbnail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲9315.85 ▲0.086.26 ▲0.612.42 ▲0.13
Dashboard /wp-admin2,912 ▲586.15 ▼0.01114.52 ▼21.89157.68 ▼6.13
Posts /wp-admin/edit.php2,711 ▲173.24 ▼0.1366.85 ▲3.61155.34 ▲16.24
Add New Post /wp-admin/post-new.php1,674 ▲1316.47 ▲0.22421.00 ▲11.58159.05 ▲3.20
Media Library /wp-admin/upload.php1,721 ▲235.52 ▲0.01139.57 ▼4.50196.40 ▼1.76

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 successfully, without leaving any zombie files or tables

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

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 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: fields, field, thumbnail, thumbnails, flexible content...

acf-flexible-content-layout-thumbnail/acf-fcl.php 77% from 13 tests

The main file in "ACF Flexible Content Layout Thumbnail" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-flexible-content-layout-thumbnail.php" instead of "acf-fcl.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "1.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected433 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
▷ Static methods27.14%
▷ Public methods2485.71%
▷ Protected methods00.00%
▷ Private methods414.29%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/noImage.png37.09KB20.66KB▼ 44.30%