Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.07ms] Passed 4 tests
An overview of server-side resources used by GPlugin: Google Ads for Wordpress & WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.77 ▲2.52 |
Dashboard /wp-admin | 3.43 ▲0.12 | 51.41 ▼0.50 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 57.63 ▲9.50 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 91.41 ▼6.85 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.20 ▼3.43 |
Server storage [IO: ▲0.33MB] [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: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for GPlugin: Google Ads for Wordpress & WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.32 ▼0.65 | 1.75 ▼0.02 | 52.70 ▲13.62 |
Dashboard /wp-admin | 2,231 ▲39 | 5.86 ▲0.77 | 130.60 ▲9.39 | 61.65 ▲13.60 |
Posts /wp-admin/edit.php | 2,120 ▲52 | 2.03 ▼0.03 | 44.88 ▲3.63 | 46.32 ▲10.51 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.26 ▼0.38 | 671.17 ▲10.21 | 111.61 ▲40.63 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.35 ▲0.14 | 105.72 ▼3.60 | 56.93 ▲11.99 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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 fix the following items
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/gplugin/admin/partials/gp-admin-budget-bidding.php
- > /wp-content/plugins/gplugin/admin/partials/gp-admin-settings.php
- > /wp-content/plugins/gplugin/public/partials/google-ad-public-display.php
- > /wp-content/plugins/gplugin/admin/partials/gp-admin-jiraform.php
- > /wp-content/plugins/gplugin/admin/partials/gp-admin-ad-settings.php
- > /wp-content/plugins/gplugin/admin/partials/gp-admin-sidebar.php
- 35× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gplugin/admin/partials/gp-admin-ad-settings.php on line 39
- > PHP Notice
Undefined variable: vars in wp-content/plugins/gplugin/admin/partials/gp-admin-budget-bidding.php on line 35
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gplugin/admin/partials/gp-admin-budget-bidding.php on line 35
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gplugin/admin/partials/gp-admin-ad-settings.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gplugin/admin/partials/gp-admin-ad-settings.php on line 35
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gplugin/admin/partials/gp-admin-ad-settings.php on line 51
- > PHP Notice
Undefined variable: vars in wp-content/plugins/gplugin/admin/partials/gp-admin-ad-settings.php on line 35
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gplugin/admin/partials/gp-admin-budget-bidding.php on line 39
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gplugin/admin/partials/gp-admin-ad-settings.php on line 46
- > PHP Notice
Undefined variable: vars in wp-content/plugins/gplugin/admin/partials/gp-admin-budget-bidding.php on line 39
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: "gplugin.uk"
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in gplugin/assets to your readme.txt
gplugin/gplugin.php Passed 13 tests
Analyzing the main PHP file in "GPlugin: Google Ads for Wordpress & WooCommerce" version 0.1.0
135 characters long description:
All-in-One Google Ads plugin for Wordpress - WooCommerce. Tracking code management, Google campaign generator-manager-optimizer plugin.
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
No dangerous file extensions were detected9,978 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,208 | 65 | 8,323 |
PHP | 15 | 270 | 254 | 1,390 |
JavaScript | 3 | 46 | 43 | 265 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 4 | 5.33% |
▷ Public methods | 44 | 58.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 31 | 41.33% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/gplugin_logo.png | 8.20KB | 4.60KB | ▼ 43.86% |
admin/img/googlepremierpartner-big.png | 15.33KB | 7.52KB | ▼ 50.92% |
public/img/googlepremierpartner-big.png | 15.33KB | 7.52KB | ▼ 50.92% |
admin/img/gplugin_logo.png | 8.20KB | 4.60KB | ▼ 43.86% |
admin/img/logo_missing.png | 4.53KB | 1.93KB | ▼ 57.45% |