10% bucket-list

Code Review | Bucket List

WordPress plugin Bucket List scored10%from 54 tests.

About plugin

  • Plugin page: bucket-list
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2013
  • Latest release: Feb 13, 2015
  • Number of updates: 26
  • Update frequency: every 26.1 days
  • Top authors: exiledesigns (76.92%)ncros (26.92%)

Code review

54 tests

User reviews

6 reviews

Install metrics

90+ active /5,514 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.247.95 ▼36.70
Dashboard /wp-admin2.28 ▼1.0613.25 ▼40.81
Posts /wp-admin/edit.php2.29 ▼1.127.66 ▼51.33
Add New Post /wp-admin/post-new.php2.29 ▼3.657.14 ▼103.23
Media Library /wp-admin/upload.php2.29 ▼0.997.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.35 ▲0.001.90 ▲0.3039.42 ▼1.57
Dashboard /wp-admin2,194 ▲145.53 ▼0.1386.88 ▼4.0470.11 ▲27.34
Posts /wp-admin/edit.php2,108 ▲112.03 ▲0.0334.07 ▼1.6133.12 ▼4.27
Add New Post /wp-admin/post-new.php1,690 ▲16222.38 ▼0.54678.03 ▲26.9754.39 ▼3.30
Media Library /wp-admin/upload.php1,414 ▲114.14 ▼0.16117.83 ▲14.1943.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

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 === )
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript3169561,006
PHP5282199955
CSS35325242

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 code0.26
Average class complexity49.00
▷ Minimum class complexity38.00
▷ Maximum class complexity60.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods16
▷ Static methods1275.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/less.png5.35KB0.36KB▼ 93.36%
images/save.png4.79KB0.39KB▼ 91.80%
images/more@2x.png5.57KB0.60KB▼ 89.30%
images/delete.png5.31KB0.25KB▼ 95.29%
images/wetravel@2x.png4.99KB2.73KB▼ 45.31%