Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.08ms] Passed 4 tests
Server-side resources used by Google AdSense for Responsive Design - GARD
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.77 ▲1.96 |
Dashboard /wp-admin | 3.58 ▲0.23 | 49.37 ▼13.03 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 49.83 ▼2.35 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 95.77 ▼5.26 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 35.72 ▲0.32 |
GARD /wp-admin/admin.php?page=gard | 3.61 | 31.54 |
GARD Help /wp-admin/admin.php?page=gard-help | 3.48 | 32.43 |
GARD Pro Demo /wp-admin/admin.php?page=gard-pro-info | 4.37 | 32.27 |
Server storage [IO: ▲1.89MB] [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: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Google AdSense for Responsive Design - GARD
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲121 | 13.34 ▼0.84 | 2.06 ▲0.32 | 41.49 ▼2.90 |
Dashboard /wp-admin | 2,236 ▲44 | 4.97 ▲0.03 | 99.41 ▼12.44 | 80.54 ▲31.35 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 2.09 ▲0.12 | 39.06 ▼1.24 | 33.76 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 17.63 ▼5.45 | 716.79 ▲82.18 | 49.70 ▼12.73 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.24 ▼0.09 | 110.94 ▲8.54 | 43.91 ▼2.13 |
GARD /wp-admin/admin.php?page=gard | 6,175 | 2.53 | 47.73 | 49.24 |
GARD Help /wp-admin/admin.php?page=gard-help | 926 | 1.79 | 29.61 | 27.04 |
GARD Pro Demo /wp-admin/admin.php?page=gard-pro-info | 9,213 | 1.97 | 35.36 | 48.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gard-help
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gard-help
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gard-help
- > Notice in wp-content/plugins/google-adsense-for-responsive-design-gard/help.php+91
Undefined variable: plugin_id
- > GET request to /wp-admin/admin.php?page=gard-help
- > Notice in wp-content/plugins/google-adsense-for-responsive-design-gard/help.php+92
Undefined variable: gard_help
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gard-pro-info
- > Notice in wp-content/plugins/google-adsense-for-responsive-design-gard/pro.php+45
Undefined variable: MAA_vars
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gard-pro-info
- > Notice in wp-content/plugins/google-adsense-for-responsive-design-gard/pro.php+45
Trying to access array offset on value of type null
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 fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/google-adsense-for-responsive-design-gard/help.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/google-adsense-for-responsive-design-gard/pro.php:2
- > PHP Warning
Use of undefined constant GARD_PRO_LINK - assumed 'GARD_PRO_LINK' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-adsense-for-responsive-design-gard/sidebar.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/google-adsense-for-responsive-design-gard/donate.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/google-adsense-for-responsive-design-gard/options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/google-adsense-for-responsive-design-gard/register.php:31
- > PHP Warning
Use of undefined constant GARD_PRO_LINK - assumed 'GARD_PRO_LINK' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-adsense-for-responsive-design-gard/sidebar.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/google-adsense-for-responsive-design-gard/sidebar.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/google-adsense-for-responsive-design-gard/index.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/google-adsense-for-responsive-design-gard/menu.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gard-pro-info
- > Rendering (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=gard
- > Network (severe)
https://s2.googleusercontent.com/s2/favicons - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=gard-pro-info
- > Network (severe)
http://dev.thepluginfactory.co/wp-content/plugins/gard-pro/video16.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: advertising, google adsense, responsive design, responsive, gard...
google-adsense-for-responsive-design-gard/index.php 92% from 13 tests
The main PHP script in "Google AdSense for Responsive Design - GARD" version 2.23 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("google-adsense-for-responsive-design-gard.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected8,196 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 621 | 95 | 5,639 |
JavaScript | 3 | 283 | 194 | 1,745 |
CSS | 3 | 107 | 39 | 812 |
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.12 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 1.44MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/GARD Pro - License Page.png | 18.51KB | 7.42KB | ▼ 59.93% |
images/screenshot.png | 43.02KB | 17.56KB | ▼ 59.20% |
images/screenshot_pro.png | 23.43KB | 12.59KB | ▼ 46.27% |
images/GARD Pro - Group 1 Basic Settings.png | 138.06KB | 58.36KB | ▼ 57.73% |
images/tpf_donate.png | 41.89KB | 23.96KB | ▼ 42.81% |