Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▲3.45ms] Passed 4 tests
An overview of server-side resources used by Blue Odin Companion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.29 ▼0.48 |
Dashboard /wp-admin | 3.35 ▲0.05 | 54.54 ▲3.55 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 55.45 ▲2.53 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 100.18 ▲9.72 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.45 ▲8.21 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_bo_sessions |
wp_bo_carts |
wp_bo_utm_data |
wp_bo_cart_items |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
blueodin_db_version |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Blue Odin Companion: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.36 | 2.01 ▲0.36 | 44.60 ▼0.72 |
Dashboard /wp-admin | 2,213 ▲22 | 4.84 ▼0.03 | 101.55 ▼5.01 | 43.09 ▲4.86 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.02 | 39.93 ▲2.65 | 33.91 ▼4.14 |
Add New Post /wp-admin/post-new.php | 1,521 ▼0 | 23.36 ▲0.18 | 607.98 ▼78.35 | 50.32 ▲0.66 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.07 | 97.56 ▼14.87 | 44.28 ▲0.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables detected upon uninstall: 4 tables
- wp_bo_sessions
- wp_bo_cart_items
- wp_bo_carts
- wp_bo_utm_data
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- blueodin_db_version
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/blueodin/includes/BlueOdinActivator.php on line 28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blueodin/includes/BlueOdinActivator.php on line 28
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/blueodin/includes/BlueOdinActivator.php on line 28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% 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
4 plugin tags: abandonedcarts, reporting, emails, woocommerce
blueodin/blueodin-plugin.php 92% from 13 tests
"Blue Odin Companion" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("blueodin.php" instead of "blueodin-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,516 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 468 | 1,017 | 1,458 |
Bourne Shell | 2 | 12 | 2 | 31 |
JSON | 1 | 0 | 0 | 11 |
JavaScript | 1 | 2 | 0 | 11 |
Markdown | 1 | 5 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 17 | 80.95% |
Methods | 124 | |
▷ Static methods | 29 | 23.39% |
▷ Public methods | 97 | 78.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 21.77% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected