74% blueodin

Code Review | Blue Odin Companion

WordPress plugin Blue Odin Companion scored74%from 54 tests.

About plugin

  • Plugin page: blueodin
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Jul 12, 2022
  • Latest release: Jul 12, 2022
  • Number of updates: 3
  • Update frequency: every 10.3 days
  • Top authors: dpashley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /223 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.29 ▼0.48
Dashboard /wp-admin3.35 ▲0.0554.54 ▲3.55
Posts /wp-admin/edit.php3.47 ▲0.1155.45 ▲2.53
Add New Post /wp-admin/post-new.php5.96 ▲0.07100.18 ▲9.72
Media Library /wp-admin/upload.php3.28 ▲0.0539.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.362.01 ▲0.3644.60 ▼0.72
Dashboard /wp-admin2,213 ▲224.84 ▼0.03101.55 ▼5.0143.09 ▲4.86
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0239.93 ▲2.6533.91 ▼4.14
Add New Post /wp-admin/post-new.php1,521 ▼023.36 ▲0.18607.98 ▼78.3550.32 ▲0.66
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0797.56 ▼14.8744.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP274681,0171,458
Bourne Shell212231
JSON10011
JavaScript12011
Markdown1505

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 code0.26
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes1780.95%
Methods124
▷ Static methods2923.39%
▷ Public methods9778.23%
▷ Protected methods00.00%
▷ Private methods2721.77%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.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