Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.81ms] Passed 4 tests
This is a short check of server-side resources used by ACF Flexible Content Layout Previews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.96 ▲0.65 |
Dashboard /wp-admin | 3.35 ▲0.01 | 50.78 ▼12.86 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.45 ▲1.43 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 87.00 ▼24.46 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.95 ▲3.27 |
Server storage [IO: ▲2.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ACF Flexible Content Layout Previews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.76 ▲0.37 | 1.78 ▼0.01 | 46.63 ▲7.67 |
Dashboard /wp-admin | 2,209 ▲38 | 5.76 ▲0.09 | 96.12 ▲1.80 | 38.10 ▼2.34 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.21 ▲0.24 | 42.94 ▲4.29 | 34.77 ▼3.99 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 18.51 ▼4.42 | 673.30 ▼53.20 | 71.51 ▲15.69 |
Media Library /wp-admin/upload.php | 1,420 ▲26 | 4.23 ▲0.07 | 107.67 ▲4.35 | 42.35 ▼0.06 |
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
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/acf-flexible-content-layout-previews/admin/partials/acf-fc-layout-previews-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== acf-flexible-content-layout-previews ===
) - Screenshots: These screenshots require images: #1 (When adding a new layout to your page, you are prompted with visual examples of each content row), #2 (You must name screenshots after the "Name" of the layout, in jpg format), #3 (Once you have screenshots ready to use, you must upload them to your [uploads]/acf-fc-layouts folder. This method may change in a major release in the future.)
acf-flexible-content-layout-previews/acf-fc-layout-previews.php 85% from 13 tests
This is the main PHP file of "ACF Flexible Content Layout Previews" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("acf-flexible-content-layout-previews.php" instead of "acf-fc-layout-previews.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected262 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 118 | 539 | 184 |
CSS | 1 | 5 | 0 | 40 |
JavaScript | 1 | 11 | 22 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 1.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.36MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 58.40KB | 15.56KB | ▼ 73.37% |
screenshot-1.png | 273.02KB | 109.84KB | ▼ 59.77% |
screenshot-2.png | 35.60KB | 19.86KB | ▼ 44.21% |