Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▼1.64MB] [CPU: ▼49.19ms] Passed 4 tests
An overview of server-side resources used by WP Bucket
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.35 ▼1.11 | 7.04 ▼41.33 |
Dashboard /wp-admin | 2.37 ▼0.94 | 6.55 ▼39.10 |
Posts /wp-admin/edit.php | 2.37 ▼0.99 | 6.49 ▼39.92 |
Add New Post /wp-admin/post-new.php | 2.37 ▼3.52 | 7.73 ▼76.39 |
Media Library /wp-admin/upload.php | 2.37 ▼0.86 | 10.78 ▼22.48 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Bucket
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.18 | 1.91 ▼0.04 | 41.73 ▼5.34 |
Dashboard /wp-admin | 2,203 ▲15 | 5.81 ▼0.25 | 96.64 ▼9.44 | 41.70 ▼5.05 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.03 | 39.25 ▼0.80 | 35.39 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.38 ▲5.79 | 599.58 ▼4.41 | 45.78 ▼8.05 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.22 ▲0.03 | 98.41 ▼0.78 | 41.23 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-bucket/inc/OAuth.class.php+101
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-bucket/wp_bucket.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_OAuth' not found in wp-content/plugins/wp-bucket/inc/WP_Bucket.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wb_get_user_info() in wp-content/plugins/wp-bucket/pages/wp-bucket-test.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_page_by_path() in wp-content/plugins/wp-bucket/pages/login-by-bitbucket.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Create a Bitbucket Application and applying WP Bucket setting.), #2 (WP Bucket test page( http://yoursite.com/wp-bucket-test/ ).)
wp-bucket/wp_bucket.php 85% from 13 tests
The principal PHP file in "WP Bucket" v. 0.1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-bucket.php" instead of "wp_bucket.php")
- Description: The description should be shorter than 140 characters (currently 297 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,698 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 448 | 484 | 1,447 |
CSS | 1 | 2 | 0 | 141 |
PO File | 2 | 27 | 30 | 101 |
Markdown | 1 | 5 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 10 | 9.52% |
▷ Public methods | 92 | 87.62% |
▷ Protected methods | 4 | 3.81% |
▷ Private methods | 9 | 8.57% |
Functions | 17 | |
▷ Named functions | 10 | 58.82% |
▷ Anonymous functions | 7 | 41.18% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
pages/css/images/error.png | 3.08KB | 0.41KB | ▼ 86.66% |
pages/css/images/download.png | 3.13KB | 0.33KB | ▼ 89.42% |
pages/css/images/info.png | 3.14KB | 0.55KB | ▼ 82.57% |
pages/css/images/notice.png | 2.86KB | 0.27KB | ▼ 90.60% |
screenshot-2.png | 27.68KB | 27.13KB | ▼ 1.99% |