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.02MB] [CPU: ▼313.96ms] Passed 4 tests
Analyzing server-side resources used by Advanced Custom Fields: Accordion Tab Field
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 52.57 ▲4.44 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.52 ▼2.61 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.26 ▼2.51 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 93.01 ▼1,246.36 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.61 ▼4.37 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Custom Fields: Accordion Tab Field
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.93 ▼0.08 | 6.52 ▲0.39 | 2.63 ▼0.09 |
Dashboard /wp-admin | 2,895 ▲34 | 6.05 ▼0.16 | 115.36 ▼22.58 | 158.69 ▼7.31 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▲0.01 | 63.58 ▼2.35 | 137.51 ▼9.00 |
Add New Post /wp-admin/post-new.php | 1,655 ▼55 | 20.51 ▼0.09 | 422.83 ▼41.16 | 159.44 ▼8.49 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.53 ▲0.03 | 137.20 ▼6.96 | 195.75 ▲9.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/acf-accordion/acf-accordion.php:14
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-accordion/acf-accordion-v5.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-accordion/acf-accordion-v4.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Donate link: Please fix this invalid URI: ""
acf-accordion/acf-accordion.php Passed 13 tests
The principal PHP file in "Advanced Custom Fields: Accordion Tab Field" v. 1.1.1 is loaded by WordPress automatically on each request
126 characters long description:
An accordion field that lets you group multiple fields under accordion tabs. This makes a long ACF form break down with style.
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 detected1,790 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 1,348 |
PHP | 3 | 99 | 262 | 210 |
CSS | 2 | 24 | 9 | 144 |
JavaScript | 1 | 34 | 31 | 59 |
PO File | 1 | 5 | 12 | 29 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected