84% octoboard

Code Review | Octoboard - WooCommerce Analytics

WordPress plugin Octoboard - WooCommerce Analytics scored84%from 54 tests.

About plugin

  • Plugin page: octoboard
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2022
  • Latest release: Feb 27, 2023
  • Number of updates: 15
  • Update frequency: every 17.1 days
  • Top authors: octoboard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.32ms] Passed 4 tests

This is a short check of server-side resources used by Octoboard - WooCommerce Analytics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.85 ▼7.74
Dashboard /wp-admin3.31 ▲0.0147.63 ▼2.01
Posts /wp-admin/edit.php3.36 ▲0.0147.85 ▼1.48
Add New Post /wp-admin/post-new.php5.89 ▲0.01101.80 ▲1.94
Media Library /wp-admin/upload.php3.23 ▲0.0038.04 ▲9.40

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Octoboard - WooCommerce Analytics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.57 ▼1.051.72 ▼0.1242.32 ▲0.83
Dashboard /wp-admin2,209 ▲185.89 ▲0.07107.88 ▲2.7042.34 ▼0.35
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0136.48 ▼6.0133.18 ▼2.18
Add New Post /wp-admin/post-new.php1,533 ▼023.45 ▲0.13658.38 ▲42.6262.01 ▲11.30
Media Library /wp-admin/upload.php1,391 ▲34.27 ▲0.10100.34 ▼13.7745.25 ▲1.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/octoboard/includes/integration.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/octoboard/includes/render_footer_tracking_events.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/octoboard/includes/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 37 tag instead of maximum 10
You can take inspiration from this readme.txt

octoboard/octoboard-woocommerce-integration.php 92% from 13 tests

The principal PHP file in "Octoboard - WooCommerce Analytics" v. 2.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("octoboard.php" instead of "octoboard-woocommerce-integration.php")

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
Everything looks great! No dangerous files found in this plugin625 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP59790621
Markdown1103
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity48.00
▷ Minimum class complexity2.00
▷ Maximum class complexity94.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods4391.49%
▷ Protected methods00.00%
▷ Private methods48.51%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin