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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼294.76ms] Passed 4 tests
An overview of server-side resources used by Advanced Custom Fields: Ninjaforms Add-on
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.14 | 56.09 ▲4.38 |
Dashboard /wp-admin | 3.49 ▲0.08 | 32.63 ▼0.25 |
Posts /wp-admin/edit.php | 3.72 ▲0.07 | 35.78 ▼2.67 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 135.78 ▼1,177.45 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 25.01 ▲1.33 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Fields: Ninjaforms Add-on: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲30 | 15.57 ▼0.44 | 5.80 ▲0.12 | 2.22 ▼0.62 |
Dashboard /wp-admin | 2,915 ▲54 | 6.07 ▲0.00 | 117.88 ▼14.53 | 155.97 ▼5.61 |
Posts /wp-admin/edit.php | 2,709 ▲21 | 3.36 ▲0.00 | 65.21 ▲3.26 | 141.15 ▲3.10 |
Add New Post /wp-admin/post-new.php | 1,765 ▲104 | 21.51 ▼0.25 | 462.59 ▲4.80 | 161.52 ▲3.20 |
Media Library /wp-admin/upload.php | 1,718 ▲20 | 5.49 ▼0.04 | 158.57 ▲14.31 | 201.97 ▲14.94 |
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
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 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-ninjaforms-add-on/resources/Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-ninjaforms-add-on/resources/FieldForV4.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
9 plugin tags: acf, ninja form, forms, fields, form...
acf-ninjaforms-add-on/acf-ninjaforms-add-on.php Passed 13 tests
The principal PHP file in "Advanced Custom Fields: Ninjaforms Add-on" v. 1.1 is loaded by WordPress automatically on each request
58 characters long description:
Advanced Custom Field with which we can select Ninjaforms.
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 detected742 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 160 | 325 | 697 |
PO File | 1 | 6 | 6 | 45 |
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.37 |
Average class complexity | 12.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.72 |
▷ 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 | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 45 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.25% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin