Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.72MB] [CPU: ▼209.09ms] Passed 4 tests
An overview of server-side resources used by Flexible Content Preview for Advanced Custom Fields
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.91 ▼0.82 | 5.17 ▼12.36 |
Dashboard /wp-admin | 1.93 ▼1.13 | 5.83 ▼29.42 |
Posts /wp-admin/edit.php | 1.93 ▼1.18 | 5.15 ▼26.28 |
Add New Post /wp-admin/post-new.php | 1.93 ▼3.51 | 5.06 ▼763.16 |
Media Library /wp-admin/upload.php | 1.93 ▼1.07 | 5.61 ▼17.51 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Flexible Content Preview for Advanced Custom Fields
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,688 ▲87 | 15.70 ▼0.30 | 4.97 ▼0.04 | 75.82 ▼1.95 |
Dashboard /wp-admin | 2,942 ▲46 | 6.11 ▼0.05 | 116.17 ▼19.81 | 170.17 ▼4.15 |
Posts /wp-admin/edit.php | 2,755 ▲12 | 3.24 ▲0.00 | 63.29 ▼0.04 | 137.72 ▼3.66 |
Add New Post /wp-admin/post-new.php | 3,734 ▼73 | 15.53 ▼3.57 | 435.38 ▼43.21 | 163.20 ▼0.41 |
Media Library /wp-admin/upload.php | 1,761 ▲9 | 5.51 ▲0.02 | 140.64 ▼0.19 | 189.10 ▲6.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-content/plugins/acf-flexible-content-preview/classes/requirements.php+31
Advanced Custom Fields is a required plugin.
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/acf-flexible-content-preview/acf-flexible-content-preview.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Trait 'FCP\\Singleton' not found in wp-content/plugins/acf-flexible-content-preview/classes/requirements.php on line 5
- > PHP Fatal error
Trait 'FCP\\Singleton' not found in wp-content/plugins/acf-flexible-content-preview/classes/main.php on line 5
- > PHP Warning
Use of undefined constant FCP_DIR - assumed 'FCP_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/acf-flexible-content-preview/autoload.php on line 154
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: flexible, advanced, addon, custom, acf...
acf-flexible-content-preview/acf-flexible-content-preview.php Passed 13 tests
The main file in "Flexible Content Preview for Advanced Custom Fields" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
Transforms ACF's flexible content field's layout list into a modal with image previews.
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
Everything looks great! No dangerous files found in this plugin979 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 3 | 165 | 0 | 621 |
PHP | 6 | 93 | 208 | 235 |
CSS | 1 | 0 | 0 | 104 |
JavaScript | 1 | 2 | 3 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 3 | 13.04% |
▷ Public methods | 14 | 60.87% |
▷ Protected methods | 5 | 21.74% |
▷ Private methods | 4 | 17.39% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
No PNG files were detected