Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.73MB] [CPU: ▼47.39ms] Passed 4 tests
An overview of server-side resources used by Hide ACf Layout
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 9.02 ▼30.54 |
Dashboard /wp-admin | 2.28 ▼1.03 | 12.61 ▼39.36 |
Posts /wp-admin/edit.php | 2.28 ▼1.08 | 8.87 ▼42.44 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.61 | 9.90 ▼77.20 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 11.26 ▼22.51 |
Hide ACF Layout /wp-admin/tools.php?page=dropdown-option-setting | 2.28 | 10.41 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Hide ACf Layout
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲47 | 13.20 ▼1.25 | 5.37 ▲3.56 | 46.86 ▼5.55 |
Dashboard /wp-admin | 2,211 ▲5 | 4.88 ▼0.15 | 128.05 ▲20.77 | 47.12 ▲3.03 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 1.99 ▲0.01 | 39.11 ▲4.70 | 34.62 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 23.06 ▼0.21 | 685.42 ▼18.34 | 82.71 ▲21.16 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.22 ▲0.04 | 109.51 ▲2.06 | 42.41 ▼11.70 |
Hide ACF Layout /wp-admin/tools.php?page=dropdown-option-setting | 825 | 2.05 | 30.90 | 29.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'ACF_Hide_Layout' does not have a method 'init'
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=dropdown-option-setting
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'ACF_Hide_Layout' does not have a method 'init'
- > GET request to /wp-admin/tools.php?page=dropdown-option-setting
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'ACF_Hide_Layout' does not have a method 'hide_acf_setting_add_plugin_page'
SRP Passed 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
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 97% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in hide-acf-layout/assets to your readme.txt
hide-acf-layout/hide-acf-layout.php Passed 13 tests
The primary PHP file in "Hide ACf Layout" version 1.0 is used by WordPress to initiate all plugin functionality
87 characters long description:
Hide a module in ACF 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 a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected412 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 68 | 188 |
PO File | 3 | 18 | 24 | 96 |
JavaScript | 1 | 10 | 1 | 54 |
Markdown | 1 | 34 | 0 | 52 |
CSS | 1 | 5 | 0 | 22 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon.png | 23.68KB | 9.26KB | ▼ 60.87% |