Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.32MB] [CPU: ▼307.53ms] Passed 4 tests
An overview of server-side resources used by ACF Flexible Content Layout Thumbnail
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 54.98 ▲3.63 |
Dashboard /wp-admin | 3.31 ▼0.10 | 22.85 ▼14.26 |
Posts /wp-admin/edit.php | 3.42 ▼0.23 | 26.67 ▼12.47 |
Add New Post /wp-admin/post-new.php | 6.01 ▼0.96 | 69.70 ▼1,200.71 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 20.97 ▼2.69 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 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 Thumbnail
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,815 ▲93 | 15.85 ▲0.08 | 6.26 ▲0.61 | 2.42 ▲0.13 |
Dashboard /wp-admin | 2,912 ▲58 | 6.15 ▼0.01 | 114.52 ▼21.89 | 157.68 ▼6.13 |
Posts /wp-admin/edit.php | 2,711 ▲17 | 3.24 ▼0.13 | 66.85 ▲3.61 | 155.34 ▲16.24 |
Add New Post /wp-admin/post-new.php | 1,674 ▲13 | 16.47 ▲0.22 | 421.00 ▲11.58 | 159.05 ▲3.20 |
Media Library /wp-admin/upload.php | 1,721 ▲23 | 5.52 ▲0.01 | 139.57 ▼4.50 | 196.40 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: fields, field, thumbnail, thumbnails, flexible content...
acf-flexible-content-layout-thumbnail/acf-fcl.php 77% from 13 tests
The main file in "ACF Flexible Content Layout Thumbnail" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-flexible-content-layout-thumbnail.php" instead of "acf-fcl.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "1.0")
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
No dangerous file extensions were detected433 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 93 | 231 | 433 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 24 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/noImage.png | 37.09KB | 20.66KB | ▼ 44.30% |