88% adventure-bucket-list

Code Review | Adventure Bucket List

WordPress plugin Adventure Bucket List scored 88% 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: 5.9.2
  • 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

20+ active / 1,164 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼285.95ms] Passed 4 tests

A check of server-side resources used by Adventure Bucket List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.5253.78 ▲26.38
Dashboard /wp-admin3.57 ▲0.1640.23 ▲3.15
Posts /wp-admin/edit.php3.79 ▲0.1640.54 ▲5.54
Add New Post /wp-admin/post-new.php7.04 ▲0.0895.93 ▼1,149.86
Media Library /wp-admin/upload.php3.45 ▲0.1523.68 ▼2.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Adventure Bucket List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,940 ▲18616.79 ▲0.7610.65 ▲4.202.69 ▲0.37
Dashboard /wp-admin2,915 ▲576.17 ▲0.06118.87 ▼19.07180.18 ▲14.88
Posts /wp-admin/edit.php2,708 ▲203.24 ▲0.0164.26 ▲0.58136.88 ▼1.39
Add New Post /wp-admin/post-new.php1,569 ▼9221.45 ▲4.76376.71 ▼41.47183.75 ▲26.68
Media Library /wp-admin/upload.php1,720 ▲255.64 ▲0.11124.32 ▼28.62201.27 ▲2.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/adventure-bucket-list/trunk/public/partials/wp-abl-plugin-public-display.php
    • > /wp-content/plugins/adventure-bucket-list/public/partials/wp-abl-plugin-public-display.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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
    • > 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

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


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: booking, travel, calendar

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

The primary PHP file in "Adventure Bucket List" version 1.0.9 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("adventure-bucket-list.php" instead of "wp-abl-plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 370 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin784 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
▷ Static methods43.57%
▷ Public methods10291.07%
▷ Protected methods00.00%
▷ Private methods108.93%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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
admin/css/ablLogo.png5.59KB2.42KB▼ 56.69%
trunk/admin/css/ablLogo.png5.59KB2.42KB▼ 56.69%
trunk/admin/css/abl.png2.14KB1.25KB▼ 41.55%
admin/css/abl.png2.14KB1.25KB▼ 41.55%