Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.06ms] Passed 4 tests
Server-side resources used by Google Analytics Opt-Out
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 45.89 ▲2.58 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.40 ▼4.22 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.08 ▼1.18 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 86.88 ▼5.40 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.28 ▲6.33 |
Analytics Opt-Out /wp-admin/options-general.php?page=gaoo-options | 3.41 | 39.33 |
Opt-Out Settings /wp-admin/admin.php?page=gaoo-options | 3.41 | 43.15 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Analytics Opt-Out
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.29 ▼0.99 | 2.02 ▲0.21 | 42.53 ▲2.29 |
Dashboard /wp-admin | 2,216 ▲25 | 5.85 ▲0.97 | 95.25 ▼9.49 | 38.64 ▼6.80 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.04 ▼0.01 | 33.89 ▼7.05 | 37.41 ▲0.56 |
Add New Post /wp-admin/post-new.php | 6,437 ▲4,917 | 20.63 ▼2.65 | 910.16 ▲246.18 | 60.71 ▲14.91 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.19 ▼0.01 | 103.89 ▲9.36 | 44.91 ▲4.15 |
Analytics Opt-Out /wp-admin/options-general.php?page=gaoo-options | 1,565 | 6.59 | 129.16 | 36.84 |
Opt-Out Settings /wp-admin/admin.php?page=gaoo-options | 1,562 | 6.64 | 132.02 | 33.74 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-analytics-opt-out/inc/admin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-analytics-opt-out/inc/settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/google-analytics-opt-out/inc/functions.php:103
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-analytics-opt-out/inc/scripts.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-analytics-opt-out/inc/frontend.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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The Opt-Out link can be added with the Opt-Out block in WordPress new block editor (that came with version 5.0).), #2 (If you're using the classic editor, click this little button to add the shortcode.), #3 (This is how the code looks like), #4 (This is the settings page)
google-analytics-opt-out/google-analytics-opt-out.php Passed 13 tests
Analyzing the main PHP file in "Google Analytics Opt-Out" version 2.3.6
54 characters long description:
Provides an Opt-Out functionality for Google Analytics
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected12,992 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 12,128 |
PHP | 8 | 197 | 270 | 582 |
JavaScript | 6 | 42 | 68 | 281 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 44 | |
▷ Named functions | 39 | 88.64% |
▷ Anonymous functions | 5 | 11.36% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
7 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/optout-editor-icon.png | 3.06KB | 0.32KB | ▼ 89.59% |
images/info-icon.png | 0.29KB | 0.25KB | ▼ 14.62% |
images/close-icon.png | 0.24KB | 0.24KB | 0.00% |
screenshot-4.png | 14.17KB | 15.77KB | 0.00% |
screenshot-1.png | 24.55KB | 26.47KB | 0.00% |