Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼1.80MB] [CPU: ▼55.36ms] Passed 4 tests
Analyzing server-side resources used by GAS Injector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.28 | 4.42 ▼34.62 |
Dashboard /wp-admin | 2.21 ▼1.10 | 5.15 ▼46.09 |
Posts /wp-admin/edit.php | 2.21 ▼1.15 | 6.47 ▼48.03 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 5.47 ▼91.35 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 5.92 ▼35.95 |
Server storage [IO: ▲0.18MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by GAS Injector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 14.03 ▼0.33 | 9.51 ▲6.87 | 45.24 ▼0.46 |
Dashboard /wp-admin | 2,217 ▲32 | 4.90 ▲0.04 | 116.77 ▼6.83 | 44.97 ▲0.08 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.03 ▲0.02 | 38.18 ▼0.80 | 32.30 ▼7.27 |
Add New Post /wp-admin/post-new.php | 1,520 ▼0 | 22.98 ▲0.00 | 680.82 ▲23.80 | 66.17 ▲9.42 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.15 ▼0.25 | 104.16 ▼6.57 | 44.22 ▼1.87 |
GAS Injector /wp-admin/gas-injector.php | 26 | 0.44 | 0.08 | 12.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, 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 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/gas-injector/gas-injector.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/gas-injector.php
- > Network (severe)
wp-admin/gas-injector.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid URI found ("")
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== gas-injector ===
) - Screenshots: These screenshots require images: #1 (Add your Google Analytics tracking code and domain name.), #2 (Some additional settings for debugging and adding more GAS hooks for extended tracking.)
gas-injector/gas-injector.php Passed 13 tests
The main file in "GAS Injector" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
103 characters long description:
GAS Injector for WordPress will help you add Google Analytics on Steroids (GAS) to your WordPress blog.
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 detected383 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 78 | 100 | 316 |
CSS | 1 | 14 | 3 | 54 |
JavaScript | 2 | 0 | 8 | 9 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 18 | |
▷ Named functions | 18 | 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
3 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 23.54KB | 10.10KB | ▼ 57.09% |
assets/screenshot-1.png | 121.49KB | 50.79KB | ▼ 58.19% |
images/external_link_icon.png | 0.14KB | 0.16KB | 0.00% |