78% adventure-bucket-list

Code Review | Adventure Bucket List

WordPress plugin Adventure Bucket List scored78%from 54 tests.

About plugin

  • Plugin page: adventure-bucket-...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Feb 13, 2017
  • Latest release: Jun 24, 2020
  • Number of updates: 37
  • Update frequency: every 33.1 days
  • Top authors: kevinabl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.55ms] Passed 4 tests

Server-side resources used by Adventure Bucket List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1330.00 ▼18.46
Dashboard /wp-admin3.46 ▲0.1549.31 ▲3.15
Posts /wp-admin/edit.php3.57 ▲0.2152.64 ▲4.34
Add New Post /wp-admin/post-new.php6.06 ▲0.1786.80 ▼2.31
Media Library /wp-admin/upload.php3.38 ▲0.1541.14 ▲3.42

Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Adventure Bucket List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲19313.99 ▼0.698.40 ▲6.7251.65 ▲9.01
Dashboard /wp-admin2,228 ▲374.92 ▼0.9896.36 ▼4.1668.89 ▲25.99
Posts /wp-admin/edit.php2,114 ▲252.03 ▲0.0237.40 ▼1.0933.90 ▲2.55
Add New Post /wp-admin/post-new.php1,685 ▲15222.29 ▼1.04732.51 ▲34.7460.68 ▲10.48
Media Library /wp-admin/upload.php1,401 ▲164.25 ▲0.0196.90 ▼17.4774.77 ▲27.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/adventure-bucket-list/public/partials/wp-abl-plugin-public-display.php
    • > /wp-content/plugins/adventure-bucket-list/trunk/public/partials/wp-abl-plugin-public-display.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/adventure-bucket-list/admin/partials/wp-abl-plugin-admin-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/adventure-bucket-list/trunk/admin/wp-abl-plugin-admin-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/adventure-bucket-list/admin/wp-abl-plugin-admin-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/adventure-bucket-list/trunk/admin/partials/wp-abl-plugin-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: calendar, travel, booking

adventure-bucket-list/wp-abl-plugin.php 77% from 13 tests

This is the main PHP file of "Adventure Bucket List" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 370 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("adventure-bucket-list.php" instead of "wp-abl-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin784 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13128506663
JavaScript251348
Markdown114041
CSS20432

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.29
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods112
▷ Static methods43.57%
▷ Public methods10291.07%
▷ Protected methods00.00%
▷ Private methods108.93%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/admin/css/ablLogo.png5.59KB2.42KB▼ 56.69%
admin/css/abl.png2.14KB1.25KB▼ 41.55%
trunk/admin/css/abl.png2.14KB1.25KB▼ 41.55%
admin/css/ablLogo.png5.59KB2.42KB▼ 56.69%