Benchmarks
Plugin footprint 65% 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: ▼1.86MB] [CPU: ▼57.30ms] Passed 4 tests
This is a short check of server-side resources used by Simple Plugin for Google Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.82 ▼36.42 |
Dashboard /wp-admin | 2.19 ▼1.16 | 9.76 ▼59.47 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 9.50 ▼36.83 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.71 | 9.43 ▼96.46 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 10.71 ▼27.06 |
Google Analytics /wp-admin/options-general.php?page=gasp | 2.19 | 9.08 |
Server storage [IO: ▲0.04MB] [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: 12 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-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Plugin for Google Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▼0.01 | 1.73 ▼0.52 | 39.06 ▼3.13 |
Dashboard /wp-admin | 2,193 ▲19 | 5.56 ▼0.06 | 85.86 ▼4.20 | 39.30 ▼2.41 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▼0.00 | 41.21 ▲5.28 | 36.43 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.06 ▲0.05 | 673.45 ▲50.11 | 50.76 ▼3.70 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.20 ▲0.04 | 106.08 ▲4.37 | 46.04 ▼0.18 |
Google Analytics /wp-admin/options-general.php?page=gasp | 857 | 1.99 | 28.86 | 29.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/overengineer-gasp/includes/analytics.php+87
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gasp
- > Notice in wp-content/plugins/overengineer-gasp/includes/admin/settings.php+135
Trying to access array offset on value of type bool
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: google, analytics, cookiebot
overengineer-gasp/overengineer-gasp.php Passed 13 tests
The entry point to "Simple Plugin for Google Analytics" version 1.1.2 is a PHP file that has certain tags in its header comment area
52 characters long description:
An unofficial WordPress plugin for Google Analytics.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin256 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 65 | 119 | 215 |
PO File | 1 | 13 | 14 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 50.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin