Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.95ms] Passed 4 tests
Server-side resources used by Inline Image Upload for BBPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.05 ▼0.35 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.16 ▼1.71 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.20 ▼8.59 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.79 ▼1.38 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.77 ▼4.11 |
Forum Images /wp-admin/options-general.php?page=hm_bbpui | 3.26 | 31.19 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
hm_bbpui_first_activate |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Inline Image Upload for BBPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲140 | 13.31 ▼0.84 | 8.30 ▲6.47 | 39.86 ▼6.06 |
Dashboard /wp-admin | 2,196 ▲19 | 5.58 ▼0.14 | 104.16 ▲7.63 | 43.88 ▼5.59 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.02 ▲0.05 | 44.65 ▲1.41 | 34.59 ▼9.96 |
Add New Post /wp-admin/post-new.php | 1,529 ▲125 | 23.32 ▲5.43 | 688.60 ▲31.56 | 58.99 ▼14.36 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.07 | 102.78 ▼27.13 | 42.07 ▼18.32 |
Forum Images /wp-admin/options-general.php?page=hm_bbpui | 1,012 | 3.42 | 111.21 | 34.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- hm_bbpui_first_activate
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/image-upload-for-bbpress/bbp-image-upload.php:47
- > PHP Notice
Undefined variable: potent_slug in wp-content/plugins/image-upload-for-bbpress/plugin-credit.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/image-upload-for-bbpress/plugin-credit.php:9
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: image, bbpress, media, inline, images
image-upload-for-bbpress/bbp-image-upload.php 92% from 13 tests
The entry point to "Inline Image Upload for BBPress" version 1.1.19 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("image-upload-for-bbpress.php" instead of "bbp-image-upload.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin316 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 53 | 52 | 290 |
JavaScript | 1 | 2 | 4 | 21 |
CSS | 1 | 2 | 12 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bbpui-screenshot-dialog.png | 9.92KB | 5.61KB | ▼ 43.45% |
images/wp_zone_logo.png | 2.01KB | 2.14KB | 0.00% |
images/bbpui-screenshot-toolbar.png | 5.28KB | 3.32KB | ▼ 37.05% |