Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.34ms] Passed 4 tests
An overview of server-side resources used by Skroutz Analytics for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.23 ▲0.90 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.21 ▼8.03 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.41 ▲0.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.75 ▼2.83 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.27 ▲5.67 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Skroutz Analytics 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 / | 2,793 ▲31 | 14.37 ▲0.05 | 1.65 ▲0.01 | 38.14 ▼5.48 |
Dashboard /wp-admin | 2,201 ▲20 | 5.66 ▼0.02 | 91.93 ▼10.36 | 44.31 ▲1.56 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▼0.11 | 39.33 ▼0.94 | 37.26 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.15 ▲0.02 | 611.28 ▲14.27 | 46.45 ▼5.80 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▲0.04 | 98.44 ▼6.25 | 42.50 ▼3.51 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: woocommerce, skroutz, analytics
skroutz-analytics-woocommerce/wc-skroutz-analytics.php 77% from 13 tests
"Skroutz Analytics for WooCommerce" version 1.7.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "2.5.0")
- Main file name: Name the main plugin file the same as the plugin slug ("skroutz-analytics-woocommerce.php" instead of "wc-skroutz-analytics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,019 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 2,033 |
PHP | 13 | 235 | 701 | 815 |
PO File | 1 | 32 | 34 | 132 |
JavaScript | 1 | 10 | 10 | 39 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 2 | 2.99% |
▷ Public methods | 28 | 41.79% |
▷ Protected methods | 3 | 4.48% |
▷ Private methods | 36 | 53.73% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 29 | |
▷ Global constants | 1 | 3.45% |
▷ Class constants | 28 | 96.55% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin