Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼303.33ms] Passed 4 tests
Server-side resources used by Advanced Custom Fields: Gravityforms Add-on
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.13 | 54.54 ▲4.70 |
Dashboard /wp-admin | 3.49 ▲0.08 | 37.82 ▲5.34 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 35.90 ▼2.82 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 93.61 ▼1,217.40 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 25.76 ▲2.21 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Custom Fields: Gravityforms Add-on
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲39 | 16.09 ▲0.45 | 5.94 ▲0.29 | 2.07 ▲0.09 |
Dashboard /wp-admin | 2,915 ▲61 | 6.13 ▼0.02 | 115.16 ▼13.06 | 154.58 ▼6.08 |
Posts /wp-admin/edit.php | 2,703 ▲9 | 3.24 ▼0.00 | 62.30 ▼1.27 | 137.03 ▼5.74 |
Add New Post /wp-admin/post-new.php | 1,730 ▲69 | 21.88 ▲5.80 | 400.96 ▼6.21 | 157.54 ▲7.91 |
Media Library /wp-admin/upload.php | 1,718 ▲20 | 5.53 ▼0.01 | 145.58 ▲5.44 | 184.31 ▼0.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-gravityforms-add-on/resources/Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-gravityforms-add-on/resources/FieldForV4.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: acf, gravityforms, gravity form, advanced custom fields, custom fields...
acf-gravityforms-add-on/acf-gravityforms-add-on.php Passed 13 tests
The entry point to "Advanced Custom Fields: Gravityforms Add-on" version 1.2.10 is a PHP file that has certain tags in its header comment area
60 characters long description:
Advanced Custom Field with which we can select Gravityforms.
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
There were no executable files found in this plugin745 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 163 | 334 | 700 |
PO File | 1 | 6 | 6 | 45 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 3 | 6.38% |
▷ Public methods | 45 | 95.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.26% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin