Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.51ms] Passed 4 tests
This is a short check of server-side resources used by Image Gallery Box by CRUDLab
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.73 ▲6.38 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.50 ▼0.17 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 44.34 ▼6.74 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 88.42 ▼11.30 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.86 ▲0.19 |
Server storage [IO: ▲4.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options |
---|
clgallerybox-options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Image Gallery Box by CRUDLab: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲260 | 13.54 ▼1.03 | 9.06 ▲7.36 | 41.45 ▲1.66 |
Dashboard /wp-admin | 2,227 ▲42 | 4.93 ▲0.04 | 94.46 ▼15.48 | 81.87 ▲40.36 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.01 ▲0.02 | 33.28 ▼4.07 | 32.11 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,531 ▲11 | 23.19 ▲0.14 | 742.37 ▲43.71 | 54.45 ▼4.59 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.12 ▼0.07 | 94.24 ▼6.66 | 68.07 ▲21.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- clgallerybox-options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/image-gallery-box-by-crudlab/popups/style1.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/image-gallery-box-by-crudlab/popups/style4.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/image-gallery-box-by-crudlab/popups/style3.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/image-gallery-box-by-crudlab/crudlab-gallerybox.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/image-gallery-box-by-crudlab/popups/style5.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/image-gallery-box-by-crudlab/popups/style6.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/image-gallery-box-by-crudlab/popups/style2.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== image-gallery-box-by-crudlab ===
)
image-gallery-box-by-crudlab/crudlab-gallerybox.php 92% from 13 tests
"Image Gallery Box by CRUDLab" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("image-gallery-box-by-crudlab.php" instead of "crudlab-gallerybox.php")
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 plugin40,308 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 7 | 0 | 0 | 28,312 |
CSS | 6 | 563 | 39 | 9,142 |
JSON | 2 | 0 | 0 | 2,139 |
PHP | 8 | 43 | 55 | 422 |
JavaScript | 5 | 72 | 66 | 293 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.49MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/cgallery.png | 0.28KB | 0.32KB | 0.00% |
img/1428427059_spotify-128.png | 3.88KB | 3.21KB | ▼ 17.23% |
img/preview.png | 400.42KB | 92.49KB | ▼ 76.90% |
img/crudlab-facebook-like-box.png | 33.96KB | 10.60KB | ▼ 68.80% |
img/wp-tweet-pro.png | 39.58KB | 12.70KB | ▼ 67.90% |