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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼191.66ms] Passed 4 tests
Server-side resources used by Website Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.27 ▼0.24 | 133.64 ▲83.98 |
Dashboard /wp-admin | 3.60 ▲0.19 | 145.19 ▲111.31 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 168.84 ▲132.42 |
Add New Post /wp-admin/post-new.php | 7.14 ▲0.17 | 208.56 ▼1,072.96 |
Media Library /wp-admin/upload.php | 3.56 ▲0.25 | 138.31 ▲111.05 |
Error Report /wp-admin/admin.php?page=mo_error_report | 3.50 | 156.19 |
Comments /wp-admin/admin.php?page=mo_cmt_post_report | 3.50 | 138.25 |
Page Count /wp-admin/admin.php?page=mo_page_count_report | 3.51 | 146.15 |
Settings /wp-admin/admin.php?page=mo_site_analytics_setting | 3.49 | 139.04 |
Upgrade /wp-admin/admin.php?page=mo_site_analytics_upgrade | 3.50 | 135.26 |
Dashboard /wp-admin/admin.php?page=mo_site_analytics | 3.51 | 180.66 |
Guest User Report /wp-admin/admin.php?page=mo_user_login_status | 3.50 | 132.22 |
Posts /wp-admin/admin.php?page=mo_post_report | 3.51 | 168.55 |
Account /wp-admin/admin.php?page=mo_site_analytics_account | 3.57 | 190.60 |
Logged in User Report /wp-admin/admin.php?page=mo_logged_in_report | 3.52 | 141.05 |
Server storage [IO: ▲0.84MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 66 new files
Database: 2 new tables, 3 new options
New tables |
---|
wp_wpsa_page_details |
wp_wpsa_user_activity |
New WordPress options |
---|
mo_wpns_new_registration |
mo_2factor_user_registration_status |
mosa_dbversion |
Browser metrics Passed 4 tests
A check of browser resources used by Website Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,836 ▲92 | 15.82 ▲0.19 | 6.01 ▼0.09 | 2.05 ▼0.08 |
Dashboard /wp-admin | 2,966 ▲105 | 6.15 ▼0.01 | 117.83 ▼16.78 | 169.32 ▼2.89 |
Posts /wp-admin/edit.php | 2,763 ▲72 | 3.12 ▼0.11 | 64.75 ▲0.31 | 143.03 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 21.17 ▲4.64 | 406.15 ▲17.90 | 182.46 ▲29.96 |
Media Library /wp-admin/upload.php | 1,774 ▲79 | 5.52 ▲0.00 | 124.78 ▼16.48 | 210.10 ▲22.07 |
Error Report /wp-admin/admin.php?page=mo_error_report | 1,440 | 4.17 | 79.74 | 163.83 |
Comments /wp-admin/admin.php?page=mo_cmt_post_report | 1,423 | 4.03 | 83.36 | 159.90 |
Page Count /wp-admin/admin.php?page=mo_page_count_report | 1,640 | 4.10 | 74.80 | 175.26 |
Settings /wp-admin/admin.php?page=mo_site_analytics_setting | 1,636 | 3.44 | 60.64 | 138.91 |
Upgrade /wp-admin/admin.php?page=mo_site_analytics_upgrade | 1,626 | 3.46 | 62.98 | 229.52 |
Dashboard /wp-admin/admin.php?page=mo_site_analytics | 1,501 | 4.89 | 112.84 | 182.56 |
Guest User Report /wp-admin/admin.php?page=mo_user_login_status | 1,771 | 4.42 | 81.03 | 190.28 |
Posts /wp-admin/admin.php?page=mo_post_report | 1,860 | 4.45 | 82.59 | 192.72 |
Account /wp-admin/admin.php?page=mo_site_analytics_account | 1,347 | 3.31 | 62.36 | 150.04 |
Logged in User Report /wp-admin/admin.php?page=mo_logged_in_report | 2,256 | 4.54 | 81.75 | 187.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 2 options in the database
- mo_2factor_user_registration_status
- mo_wpns_new_registration
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/website-analytics/controller/guest_user.php
- > /wp-content/plugins/website-analytics/controller/post_report_tab.php
- > /wp-content/plugins/website-analytics/views/dashboard.php
- > /wp-content/plugins/website-analytics/views/settings.php
- > /wp-content/plugins/website-analytics/views/upgrade.php
- > /wp-content/plugins/website-analytics/views/user_login_status_premium.php
- > /wp-content/plugins/website-analytics/views/post_report_premium.php
- > /wp-content/plugins/website-analytics/views/cmt_post_report.php
- > /wp-content/plugins/website-analytics/controller/logged_in_user_report.php
- > /wp-content/plugins/website-analytics/views/page_report_premium.php
- 92× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/website-analytics/database/database_function.php on line 7
- > PHP Warning
include(): Failed opening 'helper/pluginutility.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/website-analytics/controller/error_report.php on line 4
- > PHP Warning
include_once(): Failed opening 'controller/user_login_status_premium.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/website-analytics/controller/guest_user.php on line 28
- > PHP Warning
include_once(): Failed opening 'controller/post_report_premium.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/website-analytics/controller/post_report_tab.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'MoSite_DB' not found in wp-content/plugins/website-analytics/helper/constants.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/website-analytics/views/page_count.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/website-analytics/views/page_report.php:2
- > PHP Warning
include(): Failed opening 'helper/pluginutility.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/website-analytics/controller/user_login_status.php on line 3
- > PHP Notice
Undefined variable: browser_chart in wp-content/plugins/website-analytics/views/dashboard.php on line 43
- > PHP Warning
include(controller/support.php): failed to open stream: No such file or directory in wp-content/plugins/website-analytics/controller/main_controller.php on line 37
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=mo_site_analytics
- > Network (severe)
http://ajax.googleapis.com/ajax/static/modules/gviz/1.0/core/tooltip.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: analysis, web monitoring, site analytics, statistics, website analytics...
website-analytics/miniorange-site-activity-setting.php 85% from 13 tests
The main file in "Website Analytics" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("website-analytics.php" instead of "miniorange-site-activity-setting.php")
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin4,437 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 411 | 11 | 2,644 |
JavaScript | 4 | 5 | 10 | 1,072 |
CSS | 2 | 87 | 1 | 721 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 3 | 4.41% |
▷ Public methods | 67 | 98.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.47% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 2 | 11.76% |
▷ Class constants | 15 | 88.24% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/angry.png | 20.40KB | 9.65KB | ▼ 52.68% |
includes/images/miniOrange2.png | 3.94KB | 2.26KB | ▼ 42.53% |
includes/images/miniorange_icon.png | 0.44KB | 0.35KB | ▼ 18.61% |
includes/images/normal1.png | 15.74KB | 7.91KB | ▼ 49.78% |
includes/images/smile.png | 17.89KB | 8.79KB | ▼ 50.86% |