Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.25ms] Passed 4 tests
Server-side resources used by WooCommerce Analytics, Chat and CRM - OOMetrics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.28 ▼1.24 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.03 ▼3.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.30 ▲4.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 101.47 ▲6.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.20 ▲1.25 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WooCommerce Analytics, Chat and CRM - OOMetrics: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.14 | 1.54 ▼0.35 | 41.30 ▼6.21 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▼0.26 | 103.85 ▼13.50 | 39.77 ▼10.10 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.03 | 39.57 ▲1.78 | 35.06 ▼6.70 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.62 ▼5.51 | 677.91 ▲64.07 | 74.31 ▲17.74 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.16 ▼0.13 | 95.16 ▼3.66 | 41.48 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'OOReport' not found in wp-content/plugins/oometrics/templates/reports/info/header.php:2
- > PHP Fatal error
Uncaught Error: Class 'OOReport' not found in wp-content/plugins/oometrics/templates/reports/chats/profile-info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/oometrics/templates/debug.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/oometrics/oometrics.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/oometrics/templates/reports/dashboard.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/oometrics/templates/dashboard/sidebar/header.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/oometrics/templates/dashboard/sidebar/body.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/oometrics/templates/reports/sidebar/body.php:2
- > PHP Fatal error
Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/oometrics/inc/Fixtures/Exclusions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/oometrics/templates/dashboard/chats/profile-info.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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:
- Requires php: Invalid plugin version format
oometrics/oometrics.php 92% from 13 tests
The main PHP file in "WooCommerce Analytics, Chat and CRM - OOMetrics" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected11,085 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 915 | 1,032 | 6,898 |
JavaScript | 5 | 260 | 55 | 2,200 |
PO File | 2 | 1,033 | 1,945 | 1,071 |
CSS | 3 | 113 | 33 | 720 |
SVG | 7 | 0 | 6 | 196 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 37.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 209 | |
▷ Static methods | 10 | 4.78% |
▷ Public methods | 196 | 93.78% |
▷ Protected methods | 2 | 0.96% |
▷ Private methods | 11 | 5.26% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 19 | 67.86% |
▷ Class constants | 9 | 32.14% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin