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.06MB] [CPU: ▼5.98ms] Passed 4 tests
An overview of server-side resources used by Fast Google Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.69 ▲0.01 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.33 ▼14.31 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.83 ▼3.54 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 95.84 ▼4.15 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 31.97 ▼1.91 |
Google Analytics /wp-admin/options-general.php?page=fast-google-analytics-settings | 3.26 | 29.46 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 10 new options
New WordPress options |
---|
cruinnv_fast_google_analytics_enable_disable |
widget_recent-posts |
widget_theysaidso_widget |
cruinnv_fast_google_analytics_version |
can_compress_scripts |
theysaidso_admin_options |
cruinnv_fast_google_analytics_tracker_id |
widget_recent-comments |
db_upgraded |
cruinnv_fast_google_analytics_tracking_location |
Browser metrics Passed 4 tests
Fast Google Analytics: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 14.79 ▲0.42 | 1.67 ▼0.04 | 43.33 ▲3.51 |
Dashboard /wp-admin | 2,216 ▲31 | 5.83 ▲0.72 | 96.96 ▼20.19 | 79.99 ▲34.58 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.01 | 38.41 ▼2.31 | 36.12 ▲4.89 |
Add New Post /wp-admin/post-new.php | 1,529 ▲10 | 23.21 ▼0.37 | 670.44 ▲13.42 | 58.61 ▲6.21 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.22 ▼0.05 | 114.27 ▲13.78 | 47.33 ▲1.96 |
Google Analytics /wp-admin/options-general.php?page=fast-google-analytics-settings | 978 | 1.87 | 27.33 | 33.46 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-google-analytics/include/settings.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-google-analytics/include/settings.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/fast-google-analytics/include/admin-help.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: stats, google analytics widget, google analytics, analytics, google analytics dashboard...
fast-google-analytics/fast-google-analytics.php Passed 13 tests
Analyzing the main PHP file in "Fast Google Analytics" version 1.0.1
119 characters long description:
Fast Google Analytics allows you to add the standard Google Analytics tracking code to your website's header or footer.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected679 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 9 | 37 | 397 |
CSS | 1 | 0 | 6 | 228 |
JavaScript | 4 | 5 | 19 | 54 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.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 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
6 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/images/cruinnv-fast-google-analytics-admin-pop-up.png | 0.73KB | 1.12KB | 0.00% |
screenshot-3.png | 26.65KB | 12.82KB | ▼ 51.91% |
screenshot-2.png | 30.81KB | 14.82KB | ▼ 51.90% |
screenshot-1.png | 25.29KB | 13.21KB | ▼ 47.78% |
include/images/cruinnv-fast-google-analytics.png | 0.34KB | 0.49KB | 0.00% |