Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.91ms] Passed 4 tests
Analyzing server-side resources used by Google Analytics Code Management
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.37 ▼2.20 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.50 ▼2.59 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.00 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.07 ▼10.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.43 ▲0.03 |
Add Analytics Code /wp-admin/options-general.php?page=add_analytics_codes | 3.22 | 31.23 |
Add Analytics Code Plugin Dashboard /wp-admin/index.php?page=add-analytics-code-abouts | 3.22 | 36.48 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Analytics Code Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲138 | 13.97 ▼0.40 | 8.35 ▲6.32 | 42.42 ▼5.73 |
Dashboard /wp-admin | 2,221 ▲36 | 4.84 ▼0.02 | 104.68 ▲1.28 | 39.76 ▼2.39 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.00 ▲0.02 | 36.58 ▼4.21 | 33.01 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,524 ▼18 | 17.69 ▼0.68 | 678.65 ▲66.00 | 48.84 ▼11.01 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▲0.07 | 95.70 ▼8.49 | 42.52 ▼1.02 |
Add Analytics Code /wp-admin/options-general.php?page=add_analytics_codes | 799 | 2.05 | 25.85 | 30.33 |
Add Analytics Code Plugin Dashboard /wp-admin/index.php?page=add-analytics-code-abouts | 876 | 2.14 | 23.33 | 39.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ga-code-management/admin/partials/analytics-code-management-admin-display.php
- > /wp-content/plugins/ga-code-management/public/partials/analytics-code-management-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
ga-code-management/analytics-code-management.php 85% from 13 tests
This is the main PHP file of "Google Analytics Code Management" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ga-code-management.php" instead of "analytics-code-management.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected368 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 164 | 573 | 345 |
CSS | 2 | 2 | 8 | 17 |
JavaScript | 2 | 4 | 54 | 6 |
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.20 |
Average class complexity | 4.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/analytics.png | 7.02KB | 2.48KB | ▼ 64.72% |
admin/images/analytics-2.png | 11.87KB | 4.39KB | ▼ 62.98% |
admin/images/analytics-1.png | 5.85KB | 1.82KB | ▼ 68.89% |
Analytics Code Management Screenshot.png | 12.94KB | 6.90KB | ▼ 46.72% |