Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.69MB] [CPU: ▲2.72ms] Passed 4 tests
An overview of server-side resources used by B Gallery - lightbox gallery plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.76 | 51.86 ▲5.84 |
Dashboard /wp-admin | 4.00 ▲0.69 | 54.42 ▲2.53 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 76.99 ▲23.82 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 100.51 ▼9.05 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 51.46 ▲11.57 |
All Galleries /wp-admin/edit.php?post_type=bgallery | 4.10 | 53.52 |
Add New /wp-admin/post-new.php?post_type=bgallery | 4.09 | 57.91 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 155 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for B Gallery - lightbox gallery plugin for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲152 | 13.44 ▼0.94 | 9.63 ▲7.74 | 41.81 ▲2.26 |
Dashboard /wp-admin | 2,224 ▲47 | 5.60 ▼0.03 | 93.83 ▲0.73 | 41.39 ▼3.75 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 2.05 ▲0.02 | 41.59 ▼0.89 | 36.38 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,551 ▲4 | 23.43 ▲0.28 | 668.19 ▲48.55 | 54.01 ▲2.59 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.27 ▲0.06 | 98.80 ▼12.18 | 45.51 ▼3.11 |
All Galleries /wp-admin/edit.php?post_type=bgallery | 1,302 | 3.62 | 57.70 | 30.26 |
Add New /wp-admin/post-new.php?post_type=bgallery | 2,923 | 5.82 | 140.48 | 76.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/b-gallery/templates/gallery-video.php
- > /wp-content/plugins/b-gallery/templates/gallery-image.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/b-gallery/templates/gallery-image.php on line 4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/b-gallery/templates/gallery-video.php on line 3
- > PHP Notice
Undefined variable: bgallery_images in wp-content/plugins/b-gallery/templates/gallery-image.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/b-gallery/inc/additional-customize.php:18
- > PHP Notice
Undefined variable: bgallery_videos in wp-content/plugins/b-gallery/templates/gallery-video.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Sidebar menu), #2 (UI), #3 (Gallery configuration), #4 (Shortcode Generator)
b-gallery/b-gallery.php 85% from 13 tests
This is the main PHP file of "B Gallery - lightbox gallery plugin for WordPress" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected31,108 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 290 | 503 | 8,486 |
PHP | 78 | 2,382 | 963 | 7,316 |
PO File | 20 | 3,197 | 3,594 | 6,490 |
Sass | 15 | 952 | 3 | 4,803 |
JavaScript | 7 | 1,255 | 359 | 4,011 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 24.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 6.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 238 | |
▷ Static methods | 40 | 16.81% |
▷ Public methods | 238 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/codestar/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |