Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/super-simple-google-analytics/SuperSimpleGoogleAnalytics.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; superSimpleGoogleAnalytics has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.95ms] Passed 4 tests
This is a short check of server-side resources used by Super Simple Google Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.50 ▲0.80 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.85 ▲1.76 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.18 ▼0.75 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.18 ▼17.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.07 ▲4.87 |
Google Analytics /wp-admin/options-general.php?page=super_simple_google_analytics | 3.21 | 32.97 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Super Simple Google Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.25 ▼1.00 | 1.63 ▼0.05 | 44.63 ▲1.15 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▲0.01 | 108.23 ▲4.10 | 42.24 ▼3.90 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.03 | 41.96 ▲1.74 | 36.19 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.44 ▲0.22 | 669.53 ▼27.22 | 61.03 ▼6.48 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.04 | 100.72 ▼5.52 | 52.82 ▲7.35 |
Google Analytics /wp-admin/options-general.php?page=super_simple_google_analytics | 870 | 2.04 | 25.79 | 29.40 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/super-simple-google-analytics/SuperSimpleGoogleAnalytics.php:71
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The bare bones options page.), #2 (Where to find your Google Analytics account number.), #3 (Source of the tracking code inserted just before </body>.)
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
super-simple-google-analytics/SuperSimpleGoogleAnalytics.php 85% from 13 tests
The main file in "Super Simple Google Analytics" v. 1.7.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 148 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-simple-google-analytics.php" instead of "SuperSimpleGoogleAnalytics.php")
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
Success! There were no dangerous files found in this plugin251 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 29 | 181 |
PO File | 1 | 12 | 23 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 7.81KB | 4.08KB | ▼ 47.78% |
screenshot-3.png | 8.15KB | 8.10KB | ▼ 0.59% |
screenshot-1.png | 7.87KB | 7.56KB | ▼ 3.99% |