Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.08ms] Passed 4 tests
This is a short check of server-side resources used by Backbone Bootstrap Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.17 ▼4.27 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.77 ▼1.73 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.45 ▼1.38 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 94.20 ▼8.93 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.66 ▲2.45 |
BB Tags /wp-admin/edit-tags.php?taxonomy=bb_tags&post_type=attachment | 3.37 | 36.08 |
Server storage [IO: ▲1.07MB] [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: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Backbone Bootstrap Gallery: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.24 ▼0.02 | 1.87 ▼0.00 | 43.45 ▼1.67 |
Dashboard /wp-admin | 2,213 ▲33 | 5.63 ▼0.09 | 91.54 ▼1.36 | 44.47 ▼0.03 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.14 ▲0.17 | 41.49 ▲6.09 | 38.19 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 23.08 ▲4.83 | 657.81 ▲13.89 | 67.83 ▲5.69 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.21 ▲0.04 | 100.78 ▼4.35 | 45.48 ▼0.17 |
BB Tags /wp-admin/edit-tags.php?taxonomy=bb_tags&post_type=attachment | 1,264 | 2.25 | 27.54 | 32.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bb-gallery/bbg_xiv-gallery_templates_wp_rest.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bb-gallery/bbg_xiv-gallery.php:877
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bb-gallery/bbg_xiv-gallery_templates_wp_rest.php:79
- > PHP Fatal error
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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: gallery, slideshow, shortcode, responsive, replacement...
bb-gallery/bbg_xiv-gallery.php 92% from 13 tests
The entry point to "Backbone Bootstrap Gallery" version 1.8.2.4.5.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("bb-gallery.php" instead of "bbg_xiv-gallery.php")
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
There were no executable files found in this plugin15,933 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 38 | 152 | 7,918 |
JavaScript | 9 | 1,366 | 983 | 6,234 |
PHP | 3 | 71 | 105 | 1,493 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
An overview 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.40 |
Average class complexity | 162.00 |
▷ Minimum class complexity | 162.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 11.00 |
▷ Minimum method complexity | 4.00 |
▷ Maximum method complexity | 18.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 | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 36 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin