83% acf-fold-flexible-content

Code Review | ACF Fold Flexible Content

WordPress plugin ACF Fold Flexible Content scored83%from 54 tests.

About plugin

  • Plugin page: acf-fold-flexible...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 10, 2014
  • Latest release: Oct 3, 2016
  • Number of updates: 55
  • Update frequency: every 14.3 days
  • Top authors: urre (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /16,391 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.03ms] Passed 4 tests

Server-side resources used by ACF Fold Flexible Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.35 ▼1.11
Dashboard /wp-admin3.31 ▲0.0148.78 ▼15.99
Posts /wp-admin/edit.php3.37 ▲0.0149.86 ▲0.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.70 ▼3.81
Media Library /wp-admin/upload.php3.24 ▲0.0137.36 ▲0.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Fold Flexible Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▲0.141.83 ▲0.0741.80 ▼4.09
Dashboard /wp-admin2,195 ▲185.60 ▼0.0091.41 ▼24.1739.15 ▼11.39
Posts /wp-admin/edit.php2,106 ▲62.05 ▲0.0039.51 ▼2.2335.22 ▲0.20
Add New Post /wp-admin/post-new.php1,532 ▲123.14 ▼0.04692.42 ▲33.6252.41 ▼4.66
Media Library /wp-admin/upload.php1,403 ▲64.26 ▲0.07104.46 ▲2.9745.98 ▲0.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-fold-flexible-content/acf-fold-flexible.php:42

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (ACF Fold Flexible Content)
You can look at the official readme.txt

acf-fold-flexible-content/acf-fold-flexible.php 85% from 13 tests

This is the main PHP file of "ACF Fold Flexible Content" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-fold-flexible-content.php" instead of "acf-fold-flexible.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin383 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript49851180
CSS1389146
Markdown17036
PHP1123721

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png63.54KB21.32KB▼ 66.44%