Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.30ms] Passed 4 tests
Analyzing server-side resources used by WP Easy Google Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.87 ▼1.46 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.85 ▼5.45 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.01 ▲0.17 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.31 ▼20.21 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.33 ▼2.08 |
WP Easy Google Analytics /wp-admin/options-general.php?page=wp_easy_google_analytics | 3.22 | 31.19 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
wp_easy_google_analytics_options |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Easy Google Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲77 | 13.52 ▼1.23 | 21.45 ▲19.33 | 43.81 ▼5.62 |
Dashboard /wp-admin | 2,210 ▲19 | 4.82 ▼1.19 | 113.42 ▲9.06 | 38.30 ▼6.66 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▲0.00 | 40.36 ▼0.65 | 34.27 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,517 ▼21 | 17.75 ▼5.32 | 680.02 ▲66.17 | 50.98 ▼1.29 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.21 ▲0.03 | 98.39 ▲1.33 | 41.55 ▲0.74 |
WP Easy Google Analytics /wp-admin/options-general.php?page=wp_easy_google_analytics | 774 | 2.02 | 26.58 | 25.88 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 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)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-easy-google-analytics/wp-easy-google-analytics.php:25
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
wp-easy-google-analytics/wp-easy-google-analytics.php Passed 13 tests
The main PHP script in "WP Easy Google Analytics" version 1.1 is automatically included on every request by WordPress
59 characters long description:
Easy Google Analytics code integration on WordPress website
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 detected85 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 29 | 85 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin