Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.58ms] Passed 4 tests
Server-side resources used by Goolytics - Simple Google Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.63 ▲1.34 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.23 ▼5.28 |
Posts /wp-admin/edit.php | 3.40 ▲0.03 | 46.57 ▼3.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.03 | 87.63 ▼12.26 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 35.26 ▼1.74 |
Goolytics /wp-admin/options-general.php?page=goolytics | 3.25 | 35.08 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Goolytics - Simple Google Analytics: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.28 ▼0.09 | 1.91 ▲0.31 | 41.81 ▼4.90 |
Dashboard /wp-admin | 2,208 ▲28 | 5.62 ▼0.05 | 85.41 ▼2.16 | 39.69 ▼3.70 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.99 ▼0.00 | 34.76 ▼2.54 | 34.44 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.56 ▲0.34 | 678.84 ▼18.32 | 76.36 ▲20.49 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.21 ▼0.01 | 98.29 ▼16.86 | 45.98 ▲0.77 |
Goolytics /wp-admin/options-general.php?page=goolytics | 969 | 1.82 | 25.69 | 35.27 |
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
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: wp_version in wp-content/plugins/goolytics-simple-google-analytics/goolytics.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/goolytics-simple-google-analytics/inc/options.php:5
- > PHP Notice
Undefined variable: pagenow in wp-content/plugins/goolytics-simple-google-analytics/inc/authorplugins.inc.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/goolytics-simple-google-analytics/goolytics.php:81
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
goolytics-simple-google-analytics/goolytics.php 92% from 13 tests
The principal PHP file in "Goolytics - Simple Google Analytics" v. 1.1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("goolytics-simple-google-analytics.php" instead of "goolytics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected516 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 54 | 54 | 228 |
PHP | 3 | 58 | 137 | 198 |
CSS | 1 | 13 | 0 | 75 |
JavaScript | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.27 |
▷ 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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.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
No PNG files were detected