Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▲1.44ms] Passed 4 tests
An overview of server-side resources used by BVD Easy Gallery Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 46.09 ▲3.57 |
Dashboard /wp-admin | 3.56 ▲0.26 | 52.45 ▲0.80 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 55.72 ▲8.82 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 95.33 ▼3.15 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 38.41 ▲4.55 |
Plugin Details /wp-admin/edit.php?post_type=bvd-gallery&page=bvd-gallery-manager-details | 3.42 | 39.08 |
BVD Gallery /wp-admin/edit.php?post_type=bvd-gallery | 3.48 | 44.50 |
Server storage [IO: ▲2.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
bvads_plugin_tracking_uuid |
bvads_plugin_tracking_used_free_trial |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for BVD Easy Gallery Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,329 ▲572 | 16.44 ▲2.06 | 20.91 ▲18.92 | 37.64 ▼11.23 |
Dashboard /wp-admin | 2,368 ▲180 | 6.36 ▲0.54 | 126.79 ▲12.62 | 39.85 ▼5.33 |
Posts /wp-admin/edit.php | 2,283 ▲194 | 3.37 ▲1.33 | 54.07 ▲15.62 | 34.79 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,551 ▲31 | 18.31 ▼4.87 | 560.87 ▼105.30 | 31.98 ▼20.67 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.17 ▼0.02 | 77.06 ▼19.27 | 40.33 ▼1.39 |
Plugin Details /wp-admin/edit.php?post_type=bvd-gallery&page=bvd-gallery-manager-details | 1,093 | 3.04 | 43.23 | 61.38 |
BVD Gallery /wp-admin/edit.php?post_type=bvd-gallery | 1,258 | 3.32 | 46.27 | 27.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- bvads_plugin_tracking_uuid
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- bvads_plugin_tracking_used_free_trial
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_custom() in wp-content/plugins/bvd-easy-gallery-manager/bvd-gallery-manager-gallery-options-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/bvd-easy-gallery-manager/bvd-gallery-manager-frontend-gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bvd-easy-gallery-manager/bvd-gallery-manager.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/bvd-easy-gallery-manager/bvd-gallery-manager-plugin-details-page.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Plugin instructions and details), #2 (All galleries), #3 (Individual gallery page), #4 (Additional gallery settings), #5 (Live gallery in page), #6 (Upload images from mobile device - Pro feature)
bvd-easy-gallery-manager/bvd-gallery-manager.php 92% from 13 tests
The main PHP file in "BVD Easy Gallery Manager" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bvd-easy-gallery-manager.php" instead of "bvd-gallery-manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,019 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 152 | 259 | 1,802 |
PHP | 4 | 241 | 75 | 1,444 |
CSS | 5 | 96 | 48 | 1,133 |
SVG | 1 | 0 | 0 | 640 |
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.32 |
Average class complexity | 96.00 |
▷ Minimum class complexity | 96.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.03% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.42MB with 0.86MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 64.71KB | 26.97KB | ▼ 58.32% |
screenshot-6.png | 24.21KB | 9.31KB | ▼ 61.53% |
screenshot-5.png | 816.56KB | 284.09KB | ▼ 65.21% |
screenshot-1.png | 159.58KB | 71.06KB | ▼ 55.47% |
screenshot-3.png | 231.97KB | 85.44KB | ▼ 63.17% |