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.00MB] [CPU: ▼144.07ms] Passed 4 tests
Analyzing server-side resources used by Advanced Custom Fields: NextGEN Gallery Field add-on
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 44.50 ▲7.80 |
Dashboard /wp-admin | 3.06 ▲0.01 | 51.36 ▼6.14 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 52.64 ▼3.71 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.53 ▼569.49 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 39.63 ▲3.05 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 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 Field add-on
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.99 ▲0.50 | 8.95 ▼3.33 | 54.55 ▲1.79 |
Dashboard /wp-admin | 2,967 ▲36 | 5.91 ▼0.04 | 158.52 ▼15.76 | 116.31 ▼6.36 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 74.78 ▲10.47 | 96.40 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.39 ▲2.63 | 363.27 ▼72.69 | 124.50 ▲5.24 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.02 | 166.17 ▼5.22 | 113.48 ▼8.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-nextgen-gallery-field-add-on/acf-ngg-v3.php:386
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-nextgen-gallery-field-add-on/acf-ngg-v5.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/advanced-custom-fields-nextgen-gallery-field-add-on/acf-ngg-v4.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/advanced-custom-fields-nextgen-gallery-field-add-on/acf-ngg.php:19
- > calling Plugin Construct
- > 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 83% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: Version not formatted correctly
- Screenshots: Add images for these screenshots: #1 (NextGEN Gallery Field.), #2 (Adding a NextGEN Gallery to a page.)
advanced-custom-fields-nextgen-gallery-field-add-on/acf-ngg.php 77% from 13 tests
The primary PHP file in "Advanced Custom Fields: NextGEN Gallery Field add-on" version 2.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 212 characters long)
- Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "3.0 or higher")
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-custom-fields-nextgen-gallery-field-add-on.php" instead of "acf-ngg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin670 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 362 | 616 | 640 |
JavaScript | 1 | 21 | 3 | 18 |
Markdown | 4 | 8 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 103.83KB | 38.07KB | ▼ 63.34% |
screenshot-1.png | 74.21KB | 25.60KB | ▼ 65.51% |