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.16MB] [CPU: ▼5.72ms] Passed 4 tests
Server-side resources used by WP Lean Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 36.75 ▼3.35 |
Dashboard /wp-admin | 3.47 ▲0.17 | 46.72 ▼0.01 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 43.97 ▼1.84 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 82.36 ▼17.69 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.53 ▲3.96 |
Configuration /wp-admin/admin.php?page=wp_lean_analytics_free_menuPageConfiguration | 3.48 | 32.60 |
Facebook Pixel Wizard /wp-admin/admin.php?page=wp_lean_analytics_free_menuPageFacebookPixelWizard | 3.42 | 30.54 |
WP Lean Analytics /wp-admin/admin.php?page=wp_lean_analytics_free_menuPages | 3.40 | 32.89 |
Smartlook recording Wizard /wp-admin/admin.php?page=wp_lean_analytics_free_menuPageSmartlookWizard | 3.42 | 31.34 |
Google Analytics Wizard /wp-admin/admin.php?page=wp_lean_analytics_free_menuPageGoogleAnalyticsWizard | 3.46 | 30.87 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 27 new options
New WordPress options |
---|
wp_lean_analytics_free_smartlook_analytics_key |
wp_lean_analytics_free_google_analytics_respect_wp_consent_manager_pro_settings |
wp_lean_analytics_free_google_analytics_anonymize_ip |
db_upgraded |
wp_lean_analytics_free_facebook_analytics_respect_wp_consent_manager_pro_settings |
wp_lean_analytics_free_google_analytics_key |
wp_lean_analytics_free_facebook_analytics_track_loggedin |
widget_theysaidso_widget |
theysaidso_admin_options |
wp_lean_analytics_free_facebook_analytics_track_login_registration |
... |
Browser metrics Passed 4 tests
WP Lean Analytics: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.34 ▼0.01 | 1.89 ▲0.24 | 44.66 ▲1.95 |
Dashboard /wp-admin | 2,231 ▲54 | 5.66 ▲0.04 | 88.27 ▼3.12 | 38.70 ▼1.38 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 1.98 ▼0.05 | 35.01 ▼2.73 | 31.26 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 22.93 ▼0.19 | 601.63 ▼5.60 | 95.89 ▲31.42 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.23 ▼0.04 | 100.26 ▼3.96 | 45.50 ▲1.56 |
Configuration /wp-admin/admin.php?page=wp_lean_analytics_free_menuPageConfiguration | 1,417 | 2.00 | 25.99 | 31.92 |
Facebook Pixel Wizard /wp-admin/admin.php?page=wp_lean_analytics_free_menuPageFacebookPixelWizard | 883 | 2.00 | 26.04 | 26.59 |
WP Lean Analytics /wp-admin/admin.php?page=wp_lean_analytics_free_menuPages | 1,024 | 1.99 | 27.21 | 37.75 |
Smartlook recording Wizard /wp-admin/admin.php?page=wp_lean_analytics_free_menuPageSmartlookWizard | 885 | 2.00 | 26.54 | 25.08 |
Google Analytics Wizard /wp-admin/admin.php?page=wp_lean_analytics_free_menuPageGoogleAnalyticsWizard | 883 | 2.00 | 23.81 | 25.74 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP 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 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Here you can configure your tracking codes and all the other options), #2 (With the built in wizard, you are setup in minutes)
- Tags: You are using too many tags: 13 tag instead of maximum 10
wp-lean-analytics/wp-lean-analytics.php 85% from 13 tests
The main file in "WP Lean Analytics" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/plugin/languages")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
No dangerous file extensions were detected1,650 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 217 | 143 | 1,531 |
CSS | 1 | 16 | 0 | 119 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 97.00 |
▷ Minimum class complexity | 97.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.61MB with 0.45MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin/img/wp_lean_analytics-wizard_google_analytics.png | 174.45KB | 52.72KB | ▼ 69.78% |
plugin/img/wp_lean_analytics-wizard_smartlook.png | 209.73KB | 55.88KB | ▼ 73.36% |
plugin/img/wp_lean_analytics-wizard_facebook_pixel.png | 243.11KB | 55.99KB | ▼ 76.97% |