Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼140.95ms] Passed 4 tests
Analyzing server-side resources used by Tiresias - Recommendation Engine for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 47.04 ▲21.37 |
Dashboard /wp-admin | 3.06 ▲0.00 | 47.77 ▼0.35 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 51.64 ▲0.87 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 91.91 ▼566.51 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 36.76 ▲2.20 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Tiresias - Recommendation Engine for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,677 ▲105 | 15.88 ▲0.41 | 9.32 ▼1.40 | 47.55 ▼6.08 |
Dashboard /wp-admin | 2,970 ▲39 | 5.88 ▼0.30 | 145.80 ▼5.43 | 121.79 ▲3.24 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 66.48 ▼1.39 | 91.71 ▼9.67 |
Add New Post /wp-admin/post-new.php | 1,500 ▼2,187 | 18.76 ▲3.66 | 400.37 ▼73.27 | 112.47 ▼1.22 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.01 | 156.18 ▼8.98 | 126.75 ▼5.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tiresias/templates/order-tagging.php
- > /wp-content/plugins/tiresias/templates/tiresias-elements.php
- > /wp-content/plugins/tiresias/templates/customer-tagging.php
- > /wp-content/plugins/tiresias/templates/product-tagging.php
- > /wp-content/plugins/tiresias/templates/category-tagging.php
- > /wp-content/plugins/tiresias/templates/cart-tagging.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tiresias/templates/widget-tiresias-element-options.php:16
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/tiresias/classes/class-wc-integration-tiresias-tagging.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tiresias/classes/class-wp-widget-tiresias-element.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiresias/woocommerce-tiresias-tagging.php:928
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: tiresias tagging, personalization, woocommerce, ecommerce, recommendations...
tiresias/woocommerce-tiresias-tagging.php 92% from 13 tests
The primary PHP file in "Tiresias - Recommendation Engine for WooCommerce" version 0.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("tiresias.php" instead of "woocommerce-tiresias-tagging.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected794 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 153 | 647 | 792 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 3 | 6.00% |
▷ Public methods | 38 | 76.00% |
▷ Protected methods | 11 | 22.00% |
▷ Private methods | 1 | 2.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin