Benchmarks
Plugin footprint 23% 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
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/bucket-list/bucketlist_widgets.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; ExileBucketList has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼58.02ms] Passed 4 tests
This is a short check of server-side resources used by Bucket List
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.24 | 7.95 ▼36.70 |
Dashboard /wp-admin | 2.28 ▼1.06 | 13.25 ▼40.81 |
Posts /wp-admin/edit.php | 2.29 ▼1.12 | 7.66 ▼51.33 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.65 | 7.14 ▼103.23 |
Media Library /wp-admin/upload.php | 2.29 ▼0.99 | 7.00 ▼30.78 |
Server storage [IO: ▲0.38MB] [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: 38 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_bucketlist_bucket |
wp_bucketlist_task |
New WordPress options |
---|
exile-bucketlist-credits |
db_upgraded |
widget_exilebucketlist |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Bucket List
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.35 ▲0.00 | 1.90 ▲0.30 | 39.42 ▼1.57 |
Dashboard /wp-admin | 2,194 ▲14 | 5.53 ▼0.13 | 86.88 ▼4.04 | 70.11 ▲27.34 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.03 ▲0.03 | 34.07 ▼1.61 | 33.12 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,690 ▲162 | 22.38 ▼0.54 | 678.03 ▲26.97 | 54.39 ▼3.30 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.14 ▼0.16 | 117.83 ▲14.19 | 43.77 ▼2.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/bucket-list/bucketlist_widgets.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; ExileBucketList has a deprecated constructor
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_bucketlist_task
- wp_bucketlist_bucket
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- can_compress_scripts
- exile-bucketlist-credits
- widget_theysaidso_widget
- widget_recent-comments
- widget_exilebucketlist
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bucket-list/bucketlist_shortcodes.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bucket-list/bucketlist_shortcodes.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bucket-list/bucketlist_admin_page.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bucket-list/bucketlist_widgets.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== bucket-list ===
)
bucket-list/bucketlist.php 92% from 13 tests
The entry point to "Bucket List" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bucket-list.php" instead of "bucketlist.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
Success! There were no dangerous files found in this plugin2,203 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 169 | 56 | 1,006 |
PHP | 5 | 282 | 199 | 955 |
CSS | 3 | 53 | 25 | 242 |
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.26 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 12 | 75.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.12MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/less.png | 5.35KB | 0.36KB | ▼ 93.36% |
images/save.png | 4.79KB | 0.39KB | ▼ 91.80% |
images/more@2x.png | 5.57KB | 0.60KB | ▼ 89.30% |
images/delete.png | 5.31KB | 0.25KB | ▼ 95.29% |
images/wetravel@2x.png | 4.99KB | 2.73KB | ▼ 45.31% |