Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼309.00ms] Passed 4 tests
This is a short check of server-side resources used by ACF Ajax Grid Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 62.19 ▲5.21 |
Dashboard /wp-admin | 3.41 ▲0.00 | 35.90 ▲0.49 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 39.89 ▼5.57 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 98.04 ▼1,225.36 |
Media Library /wp-admin/upload.php | 3.30 ▼0.01 | 24.18 ▼5.57 |
Server storage [IO: ▲0.20MB] [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: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for ACF Ajax Grid Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,799 ▲45 | 16.01 ▲0.37 | 8.10 ▲2.19 | 2.24 ▼0.16 |
Dashboard /wp-admin | 2,892 ▲31 | 6.14 ▼0.03 | 121.08 ▼31.74 | 206.30 ▲19.85 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.24 ▼0.01 | 61.03 ▼2.69 | 134.24 ▼18.99 |
Add New Post /wp-admin/post-new.php | 1,661 ▼7 | 15.71 ▼2.90 | 411.66 ▼35.29 | 170.48 ▲18.82 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.46 ▼0.03 | 140.21 ▼4.69 | 237.79 ▲41.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_add_local_field_group() in wp-content/plugins/acf-ajax-grid-gallery/inc/grid-gallery-fields/field_gallery.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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: No descriptions were found for these screenshots #1, #2 in acf-ajax-grid-gallery/assets to your readme.txt
acf-ajax-grid-gallery/acf_ajax_grid_gallery.php 92% from 13 tests
"ACF Ajax Grid Gallery" version 1.3.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("acf-ajax-grid-gallery.php" instead of "acf_ajax_grid_gallery.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 plugin3,118 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 461 | 451 | 2,167 |
PHP | 5 | 50 | 44 | 462 |
CSS | 2 | 9 | 19 | 334 |
Sass | 3 | 18 | 5 | 155 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected