Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼297.76ms] Passed 4 tests
An overview of server-side resources used by Image Gallery for Gutenberg
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 59.55 ▲4.23 |
Dashboard /wp-admin | 3.45 ▲0.04 | 37.19 ▼1.91 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 37.95 ▼1.65 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 99.27 ▼1,175.52 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 27.50 ▼11.97 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Gallery for Gutenberg
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 16.18 ▲0.48 | 5.51 ▼0.98 | 2.65 ▼0.16 |
Dashboard /wp-admin | 2,895 ▲37 | 6.16 ▲0.03 | 114.77 ▼20.12 | 157.59 ▼11.51 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.37 ▲0.13 | 60.48 ▼2.08 | 139.44 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,676 ▼35 | 17.43 ▼3.27 | 402.16 ▼24.96 | 174.51 ▲16.12 |
Media Library /wp-admin/upload.php | 1,701 ▼0 | 5.54 ▲0.02 | 138.24 ▼1.75 | 183.80 ▼17.32 |
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
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 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant BIGB_PLUGIN_VERSION - assumed 'BIGB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/3d-image-gallery/dist/script.asset.php on line 4
- > PHP Warning
Use of undefined constant BIGB_PLUGIN_VERSION - assumed 'BIGB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/3d-image-gallery/dist/editor.asset.php on line 4
- > PHP Warning
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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 require attention:
- Requires at least: Invalid version format
3d-image-gallery/index.php 85% from 13 tests
The main PHP file in "Image Gallery for Gutenberg" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("3d-image-gallery.php" instead of "index.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin193 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 153 |
PHP | 3 | 9 | 13 | 36 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin