90% acf-hide-layout

Code Review | ACF Hide Layout

WordPress plugin ACF Hide Layout scored90%from 54 tests.

About plugin

  • Plugin page: acf-hide-layout
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Jun 25, 2020
  • Latest release: Nov 22, 2023
  • Number of updates: 21
  • Update frequency: every 59.9 days
  • Top authors: bleechberlin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /7,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.94ms] Passed 4 tests

An overview of server-side resources used by ACF Hide Layout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.56 ▼4.79
Dashboard /wp-admin3.34 ▼0.0149.98 ▼16.18
Posts /wp-admin/edit.php3.45 ▲0.0949.65 ▲5.69
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.25 ▼0.64
Media Library /wp-admin/upload.php3.26 ▲0.0334.92 ▼2.13

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Hide Layout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5014.27 ▼0.111.61 ▼0.0837.31 ▼7.29
Dashboard /wp-admin2,202 ▲255.60 ▲0.0094.10 ▼4.3342.70 ▼1.97
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0539.67 ▲0.6136.35 ▲4.77
Add New Post /wp-admin/post-new.php1,533 ▼323.35 ▲0.09592.16 ▼87.7755.58 ▲4.58
Media Library /wp-admin/upload.php1,410 ▲74.21 ▲0.0095.84 ▼1.8041.51 ▲1.20

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: flexible content, hide layout, acf, advanced custom fields

acf-hide-layout/acf-hide-layout.php Passed 13 tests

"ACF Hide Layout" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
Easily hide the layout of the flexible content on the frontend but still keep it in the backend.

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
Good job! No executable or dangerous file extensions detected307 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP148194127
PO File3182496
JavaScript112158
CSS16126

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin