Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼146.57ms] Passed 4 tests
Server-side resources used by Advanced Custom Fields Repeater & Flexible Content Fields Collapser
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.13 | 45.98 ▲13.47 |
Dashboard /wp-admin | 3.07 ▲0.01 | 51.44 ▲0.87 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 50.63 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 96.29 ▼581.70 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.19 ▼6.58 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields Repeater & Flexible Content Fields Collapser
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.94 ▲0.42 | 12.67 ▲0.64 | 46.75 ▼3.33 |
Dashboard /wp-admin | 2,967 ▲36 | 5.88 ▼0.05 | 143.88 ▼17.00 | 110.24 ▼7.53 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 66.55 ▼5.12 | 100.69 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.82 ▲0.06 | 378.68 ▼27.59 | 115.91 ▼10.12 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.05 ▼0.00 | 160.01 ▼8.95 | 125.49 ▼0.99 |
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 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 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/advanced-custom-field-repeater-collapser/acf_repeater_collapser.php:17
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: acf, repeater, advanced custom fields
advanced-custom-field-repeater-collapser/acf_repeater_collapser.php 92% from 13 tests
Analyzing the main PHP file in "Advanced Custom Fields Repeater & Flexible Content Fields Collapser" version 1.5.0
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-custom-field-repeater-collapser.php" instead of "acf_repeater_collapser.php")
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
Success! There were no dangerous files found in this plugin464 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 72 | 80 | 217 |
CSS | 2 | 32 | 11 | 206 |
PHP | 1 | 7 | 14 | 39 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.04MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 13.34KB | 13.77KB | 0.00% |
assets/banner-1554x500.png | 29.67KB | 30.17KB | 0.00% |