Benchmarks
Plugin footprint 83% 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.04MB] [CPU: ▼298.71ms] Passed 4 tests
An overview of server-side resources used by Oribi Analytics for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.09 | 52.93 ▲0.63 |
Dashboard /wp-admin | 3.48 ▲0.07 | 33.95 ▼3.04 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 36.62 ▼14.79 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 102.15 ▼1,174.96 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 23.34 ▼2.05 |
Oribi Analytics /wp-admin/options-general.php?page=oribi | 3.33 | 22.18 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options |
---|
oribi_tracking_capabilities |
oribi_snippet |
Browser metrics Passed 4 tests
Oribi Analytics for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲66 | 16.44 ▲0.46 | 7.21 ▼0.17 | 2.43 ▼0.13 |
Dashboard /wp-admin | 2,901 ▲47 | 6.12 ▼0.09 | 117.31 ▼16.60 | 159.52 ▼9.89 |
Posts /wp-admin/edit.php | 2,670 ▼24 | 3.25 ▲0.01 | 65.26 ▼7.08 | 147.04 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,670 ▼82 | 16.19 ▼5.09 | 411.35 ▼57.75 | 165.92 ▲7.72 |
Media Library /wp-admin/upload.php | 1,711 ▲13 | 5.67 ▲0.16 | 133.49 ▼12.64 | 186.78 ▼7.52 |
Oribi Analytics /wp-admin/options-general.php?page=oribi | 1,199 | 2.55 | 55.00 | 138.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 2 options
- oribi_snippet
- oribi_tracking_capabilities
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oribi-analytics-for-woocommerce/inc/oribi-admin-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
5 plugin tags: tracking, analytics, ecommerce, google-analytics, insights
oribi-analytics-for-woocommerce/oribi-analytics-ecommerce.php 77% from 13 tests
The entry point to "Oribi Analytics for WooCommerce" version 1.8.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "2.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oribi-analytics-for-woocommerce.php" instead of "oribi-analytics-ecommerce.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin485 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 18 | 309 |
CSS | 1 | 26 | 0 | 151 |
SVG | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin