Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.36ms] Passed 4 tests
An overview of server-side resources used by Boffo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.61 ▼1.66 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.76 ▼17.74 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.57 ▼1.24 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.77 ▼12.80 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.58 ▲6.39 |
Messages /wp-admin/edit.php?post_type=boffo_message | 3.31 | 38.41 |
Boffo /wp-admin/admin.php?page=boffo | 3.28 | 33.41 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Boffo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 13.93 ▼0.56 | 11.91 ▲10.24 | 40.29 ▼3.41 |
Dashboard /wp-admin | 2,237 ▲57 | 5.93 ▲0.26 | 103.66 ▲9.60 | 41.25 ▼0.02 |
Posts /wp-admin/edit.php | 2,142 ▲45 | 2.40 ▲0.44 | 40.77 ▲2.93 | 37.07 ▲1.42 |
Add New Post /wp-admin/post-new.php | 6,403 ▲4,877 | 28.07 ▲4.91 | 919.35 ▲236.12 | 39.27 ▼17.53 |
Media Library /wp-admin/upload.php | 1,445 ▲48 | 4.53 ▲0.40 | 109.35 ▼2.04 | 49.20 ▲1.64 |
Messages /wp-admin/edit.php?post_type=boffo_message | 1,122 | 2.34 | 34.97 | 29.20 |
Boffo /wp-admin/admin.php?page=boffo | 969 | 2.66 | 42.25 | 32.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/boffo/public/partials/boffo-public-flow.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/boffo/admin/partials/boffo-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boffo/blocks/boffo.php:55
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 1
- > PHP Notice
Undefined variable: flow in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 1
- > PHP Notice
Undefined variable: flow in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 3
- > PHP Notice
Undefined variable: flow in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 1
- > PHP Notice
Undefined variable: flow in wp-content/plugins/boffo/public/partials/boffo-public-flow.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=boffo_message
- > Console-api (severe) in wp-content/plugins/boffo/assets/dist/admin.js?ver=1.0.1+6:5530
[Vue warn]: Cannot find element: #boffo-views
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== boffo ===
)
boffo/boffo.php Passed 13 tests
The entry point to "Boffo" version 1.0.1 is a PHP file that has certain tags in its header comment area
105 characters long description:
Boffo replaces your traditional contact form with an engaging experience that will delight your visitors.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin755 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 200 | 271 | 664 |
JavaScript | 3 | 8 | 18 | 81 |
CSS | 4 | 2 | 10 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 9 | 19.57% |
▷ Public methods | 35 | 76.09% |
▷ Protected methods | 6 | 13.04% |
▷ Private methods | 5 | 10.87% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
3 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 51.83KB | 14.11KB | ▼ 72.77% |
assets/screenshot-1.png | 133.12KB | 43.17KB | ▼ 67.57% |
assets/screenshot-3.png | 54.01KB | 15.32KB | ▼ 71.64% |