Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.52 | 53.78 ▲26.38 |
Dashboard /wp-admin | 3.57 ▲0.16 | 40.23 ▲3.15 |
Posts /wp-admin/edit.php | 3.79 ▲0.16 | 40.54 ▲5.54 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.08 | 95.93 ▼1,149.86 |
Media Library /wp-admin/upload.php | 3.45 ▲0.15 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,940 ▲186 | 16.79 ▲0.76 | 10.65 ▲4.20 | 2.69 ▲0.37 |
Dashboard /wp-admin | 2,915 ▲57 | 6.17 ▲0.06 | 118.87 ▼19.07 | 180.18 ▲14.88 |
Posts /wp-admin/edit.php | 2,708 ▲20 | 3.24 ▲0.01 | 64.26 ▲0.58 | 136.88 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,569 ▼92 | 21.45 ▲4.76 | 376.71 ▼41.47 | 183.75 ▲26.68 |
Media Library /wp-admin/upload.php | 1,720 ▲25 | 5.64 ▲0.11 | 124.32 ▼28.62 | 201.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 128 | 506 | 663 |
JavaScript | 2 | 5 | 13 | 48 |
Markdown | 1 | 14 | 0 | 41 |
CSS | 2 | 0 | 4 | 32 |
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 code | 0.31 |
Average class complexity | 13.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 4 | 3.57% |
▷ Public methods | 102 | 91.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 8.93% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/ablLogo.png | 5.59KB | 2.42KB | ▼ 56.69% |
trunk/admin/css/ablLogo.png | 5.59KB | 2.42KB | ▼ 56.69% |
trunk/admin/css/abl.png | 2.14KB | 1.25KB | ▼ 41.55% |
admin/css/abl.png | 2.14KB | 1.25KB | ▼ 41.55% |