Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.49MB] [CPU: ▼14.99ms] Passed 4 tests
An overview of server-side resources used by ShinyStat Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 43.38 ▼4.08 |
Dashboard /wp-admin | 3.49 ▲0.19 | 47.63 ▼3.79 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 47.79 ▼3.71 |
Add New Post /wp-admin/post-new.php | 3.37 ▼2.52 | 42.20 ▼48.37 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.07 ▲1.50 |
ShinyStat /wp-admin/options-general.php?page=shinystat-analytics | 3.39 | 37.59 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_shinystat_analytics_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
ShinyStat Analytics: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.34 ▼0.24 | 1.65 ▼0.17 | 39.17 ▼6.77 |
Dashboard /wp-admin | 2,201 ▲24 | 5.57 ▼0.09 | 85.23 ▼4.51 | 41.38 ▲5.32 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.01 ▲0.05 | 34.95 ▼4.78 | 33.76 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.02 ▲4.66 | 681.92 ▲46.98 | 55.46 ▼5.72 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.20 ▼0.09 | 106.17 ▲4.40 | 47.38 ▲2.87 |
ShinyStat /wp-admin/options-general.php?page=shinystat-analytics | 910 | 1.99 | 27.78 | 44.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_shinystat_analytics_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/shinystat-analytics/admin/partials/shinystat-analytics-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shinystat-analytics/includes/class-shinystat-analytics-widget.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
- Requires php: Invalid plugin version format
shinystat-analytics/shinystat-analytics.php Passed 13 tests
"ShinyStat Analytics" version 1.0.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
100 characters long description:
Activate the plugin and start to use ShinyStat Web Analytics and On-site Marketing Automation tools.
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
Everything looks great! No dangerous files found in this plugin1,164 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 384 | 744 | 917 |
CSS | 1 | 22 | 3 | 162 |
PO File | 1 | 32 | 38 | 85 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 42 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/conversions_en.png | 70.37KB | 26.33KB | ▼ 62.58% |
admin/images/conversions_it.png | 69.39KB | 26.09KB | ▼ 62.39% |