Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.18ms] Passed 4 tests
Server-side resources used by Advanced Custom Fields: NextGen Gallery Custom Field
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 51.84 ▲4.30 |
Dashboard /wp-admin | 3.41 ▲0.01 | 30.84 ▼7.63 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 34.80 ▼0.28 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.09 | 91.78 ▼1,172.46 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.24 ▼0.35 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Custom Fields: NextGen Gallery Custom Field
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲8 | 15.92 ▼0.10 | 6.34 ▲0.50 | 2.20 ▼0.20 |
Dashboard /wp-admin | 2,892 ▲34 | 6.06 ▼0.10 | 117.85 ▼14.56 | 159.27 ▲0.24 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.24 ▲0.01 | 62.20 ▲1.33 | 144.90 ▲3.76 |
Add New Post /wp-admin/post-new.php | 1,668 ▼43 | 18.04 ▼3.38 | 426.20 ▼16.62 | 151.38 ▼2.54 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.51 ▲0.00 | 135.34 ▼12.91 | 188.55 ▲0.13 |
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 successfully, without leaving any zombie files or tables
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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-nextgen-gallery-custom-field/nggallery-v4.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-nextgen-gallery-custom-field/acf-nggallery.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (This is the field in de ACF admin panel.), #2 (NGGallery object returned in template.), #3 (Images array returned in template.)
advanced-custom-fields-nextgen-gallery-custom-field/acf-nggallery.php 85% from 13 tests
Analyzing the main PHP file in "Advanced Custom Fields: NextGen Gallery Custom Field" version 1.1.4
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-custom-fields-nextgen-gallery-custom-field.php" instead of "acf-nggallery.php")
- Description: Keep the plugin description shorter than 140 characters (currently 191 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected176 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 64 | 167 | 176 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.20MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 57.40KB | 17.04KB | ▼ 70.32% |
screenshot-2.png | 62.70KB | 15.59KB | ▼ 75.13% |
screenshot-1.png | 88.44KB | 27.26KB | ▼ 69.17% |