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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼304.03ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Custom Fields: Flexible Content Toggler
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 51.43 ▲1.69 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.00 ▼0.85 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 39.22 ▲0.68 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.09 | 93.79 ▼1,214.88 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.10 ▼1.05 |
Server storage [IO: ▲0.00MB] [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: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: Flexible Content Toggler
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲15 | 16.23 ▲0.56 | 5.63 ▼0.25 | 2.05 ▼0.35 |
Dashboard /wp-admin | 2,895 ▲34 | 6.12 ▼0.09 | 116.01 ▼21.72 | 157.50 ▼2.99 |
Posts /wp-admin/edit.php | 2,685 ▼6 | 3.23 ▼0.00 | 63.22 ▲2.67 | 138.66 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,661 ▼49 | 16.16 ▼5.41 | 406.32 ▼26.81 | 158.63 ▲6.23 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.52 ▲0.03 | 135.90 ▼5.27 | 178.40 ▼10.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-flexible-content-toggler/acf_flexible_content_toggler.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
acf-flexible-content-toggler/acf_flexible_content_toggler.php 85% from 13 tests
"Advanced Custom Fields: Flexible Content Toggler" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("acf-flexible-content-toggler.php" instead of "acf_flexible_content_toggler.php")
- Description: The description should be shorter than 140 characters (currently 384 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected37 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 3 | 0 | 15 |
PHP | 1 | 23 | 9 | 13 |
JavaScript | 1 | 3 | 0 | 7 |
XML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected