Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼10.16ms] Passed 4 tests
Server-side resources used by Simplest Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 35.30 ▼4.89 |
Dashboard /wp-admin | 3.41 ▲0.07 | 43.81 ▼17.68 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.70 ▼1.01 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 81.24 ▼17.07 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.00 ▲3.94 |
Settings /wp-admin/admin.php?page=simplest-analytics-settings | 3.41 | 38.10 |
Webanalytics /wp-admin/admin.php?page=simplest-analytics | 3.64 | 33.46 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_simplest_analytics |
New WordPress options |
---|
widget_recent-posts |
simplest_analytics_version |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Simplest Analytics: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.29 ▼0.28 | 2.35 ▲0.65 | 44.11 ▲1.36 |
Dashboard /wp-admin | 2,225 ▲45 | 5.67 ▼0.00 | 82.95 ▼5.03 | 40.66 ▼3.74 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.98 ▼0.03 | 32.78 ▼5.36 | 35.18 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,548 ▲11 | 23.26 ▲5.11 | 665.48 ▲35.26 | 51.26 ▼23.57 |
Media Library /wp-admin/upload.php | 1,424 ▲30 | 4.22 ▲0.11 | 94.74 ▼7.60 | 43.21 ▲1.08 |
Settings /wp-admin/admin.php?page=simplest-analytics-settings | 1,335 | 1.86 | 25.15 | 30.83 |
Webanalytics /wp-admin/admin.php?page=simplest-analytics | 1,345 | 5.10 | 42.00 | 57.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=simplest-analytics-settings
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 50% 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simplest-analytics/admin/structure.php:70
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simplest-analytics/admin/dashboard.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=simplest-analytics
- > Javascript (severe) in unknown
https://www.gstatic.com/charts/51/js/jsapi_compiled_default_module.js 293:21 Uncaught Error: Row 0 given with size different than 4 (the number of columns in the table).
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: analytics, cookieless, statistic, tracking, video tracking
simplest-analytics/simplest-analytics.php 92% from 13 tests
Analyzing the main PHP file in "Simplest Analytics" version 1.3.1
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,562 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 526 | 258 | 2,060 |
PO File | 1 | 92 | 107 | 248 |
CSS | 1 | 0 | 0 | 182 |
JavaScript | 1 | 2 | 5 | 72 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 5.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 31 | |
▷ Static methods | 3 | 9.68% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.36MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 44.33KB | 18.98KB | ▼ 57.19% |
assets/screenshot-5.png | 53.49KB | 26.00KB | ▼ 51.39% |
assets/banner-772x250.png | 59.97KB | 17.24KB | ▼ 71.25% |
assets/screenshot-4.png | 40.35KB | 17.96KB | ▼ 55.49% |
assets/screenshot-6.png | 62.79KB | 29.62KB | ▼ 52.83% |