Benchmarks
Plugin footprint Passed 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.03MB] [CPU: ▼289.68ms] 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.64 ▲0.12 | 56.72 ▲5.35 |
Dashboard /wp-admin | 3.47 ▲0.06 | 35.33 ▲1.40 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 39.88 ▲1.53 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.04 | 102.30 ▼1,161.34 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 25.38 ▼0.30 |
Server storage [IO: ▲2.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 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 Previews
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲30 | 15.89 ▼0.11 | 6.15 ▼0.54 | 2.14 ▼0.84 |
Dashboard /wp-admin | 2,912 ▲54 | 6.30 ▲0.08 | 126.10 ▼11.83 | 154.92 ▼9.75 |
Posts /wp-admin/edit.php | 2,706 ▲18 | 3.27 ▲0.03 | 73.05 ▲6.02 | 144.04 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,685 ▼5 | 19.87 ▼1.52 | 413.63 ▼56.97 | 158.27 ▼4.90 |
Media Library /wp-admin/upload.php | 1,710 ▲12 | 5.62 ▲0.16 | 142.36 ▼1.92 | 190.38 ▲2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #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.)
- Plugin Name: Please specify the plugin name on the first line (
=== acf-flexible-content-layout-previews ===
)
acf-flexible-content-layout-previews/acf-fc-layout-previews.php 85% from 13 tests
The main PHP script in "ACF Flexible Content Layout Previews" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- 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")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
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
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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-1.png | 273.02KB | 109.84KB | ▼ 59.77% |
screenshot-2.png | 35.60KB | 19.86KB | ▼ 44.21% |
screenshot-3.png | 58.40KB | 15.56KB | ▼ 73.37% |