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
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.03ms] Passed 4 tests
Server-side resources used by AH Google Analytics Code
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.38 ▼0.08 | 26.76 ▼15.01 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.82 ▼1.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.97 ▲4.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.83 ▲3.27 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.38 ▼6.46 |
AH Google Analytics /wp-admin/options-general.php?page=evolution-google-analytics | 3.18 | 32.32 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by AH Google Analytics Code
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▲0.00 | 1.57 ▼0.12 | 43.68 ▲2.96 |
Dashboard /wp-admin | 2,199 ▲19 | 5.52 ▼0.01 | 84.03 ▼3.53 | 38.51 ▼2.79 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.95 ▼0.04 | 33.68 ▼0.60 | 32.46 ▼5.50 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 21.04 ▼1.82 | 642.75 ▲0.98 | 47.97 ▼2.38 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.15 ▼0.09 | 97.36 ▼16.70 | 45.05 ▲0.12 |
AH Google Analytics /wp-admin/options-general.php?page=evolution-google-analytics | 829 | 1.99 | 23.39 | 27.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=evolution-google-analytics
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=evolution-google-analytics
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/evolution-google-analytics-code/evolution-google-analytics-code.php:156
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
7 plugin tags: google, google analytics, analytics, piwik, analytics code...
evolution-google-analytics-code/evolution-google-analytics-code.php Passed 13 tests
The main PHP file in "AH Google Analytics Code" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
106 characters long description:
With this plugin you can add the Google Analytics Code (or any other) in no time to your header or footer.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected112 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 54 | 112 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected