Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.19MB] [CPU: ▼321.20ms] Passed 4 tests
This is a short check of server-side resources used by Easy AdSense Ads - Ad Inserter & AdSense Ad Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.49 | 58.86 ▲40.85 |
Dashboard /wp-admin | 3.14 ▼0.27 | 23.51 ▼13.03 |
Posts /wp-admin/edit.php | 3.14 ▼0.50 | 21.78 ▼23.47 |
Add New Post /wp-admin/post-new.php | 3.14 ▼3.83 | 17.15 ▼1,241.13 |
Media Library /wp-admin/upload.php | 3.14 ▼0.16 | 19.52 ▼7.16 |
EAA Help /wp-admin/admin.php?page=eaa | 3.14 | 22.26 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 4.44 | 52.75 |
EAA Settings /wp-admin/admin.php?page=eaa-settings | 3.14 | 19.83 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 4 new options
New WordPress options |
---|
widget_eaa |
widget_recent-posts |
eaa_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy AdSense Ads - Ad Inserter & AdSense Ad Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,871 ▲117 | 15.53 ▼0.12 | 6.16 ▼0.76 | 3.31 ▲0.74 |
Dashboard /wp-admin | 2,951 ▲93 | 6.42 ▲0.27 | 117.45 ▼27.02 | 154.33 ▼60.32 |
Posts /wp-admin/edit.php | 2,764 ▲70 | 2.95 ▼0.29 | 63.42 ▲3.47 | 135.44 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,743 ▼8 | 16.09 ▼5.06 | 431.35 ▼31.51 | 185.21 ▼8.55 |
Media Library /wp-admin/upload.php | 1,770 ▲72 | 5.88 ▲0.43 | 124.53 ▼45.09 | 186.99 ▲1.77 |
EAA Help /wp-admin/admin.php?page=eaa | 2,252 | 11.21 | 301.49 | 276.14 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 9,364 | 20.69 | 640.55 | 280.88 |
EAA Settings /wp-admin/admin.php?page=eaa-settings | 2,552 | 10.51 | 311.34 | 283.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5768
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The uninstall procedure has failed, leaving 4 options in the database
- eaa_settings
- widget_recent-comments
- widget_eaa
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eaa-settings
- > User notice in wp-includes/functions.php+5768
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/easy-adsense-ads-scripts-manager/inc/widget.php+192
Undefined index: text_amp
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
- > GET request to /wp-admin/admin.php?page=eaa-settings
- > Notice in wp-content/plugins/easy-adsense-ads-scripts-manager/admin/plugin-settings.php+287
Undefined index: enable_debug_mode
- > GET request to /wp-admin/admin.php?page=eaa-settings
- > Notice in wp-content/plugins/easy-adsense-ads-scripts-manager/admin/plugin-settings.php+352
Undefined index: custom_locations
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-adsense-ads-scripts-manager/inc/shortcodes.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-adsense-ads-scripts-manager/admin/meta-boxes.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-adsense-ads-scripts-manager/admin/load-customizer-styles.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-adsense-ads-scripts-manager/inc/functions-eaa-filters.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-adsense-ads-scripts-manager/inc/hook-header-footer.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-adsense-ads-scripts-manager/inc/custom-content.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-adsense-ads-scripts-manager/admin/control-responsive-content.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-adsense-ads-scripts-manager/admin/admin-ajax.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-adsense-ads-scripts-manager/admin/notices.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-adsense-ads-scripts-manager/inc/widget.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 27 tag instead of maximum 10
- Requires at least: Invalid plugin version format
easy-adsense-ads-scripts-manager/eaa.php 85% from 13 tests
Analyzing the main PHP file in "Easy AdSense Ads - Ad Inserter & AdSense Ad Manager" version 0.56
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 292 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("easy-adsense-ads-scripts-manager.php" instead of "eaa.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,516 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 669 | 921 | 2,582 |
CSS | 4 | 87 | 36 | 592 |
Markdown | 1 | 102 | 0 | 241 |
JavaScript | 4 | 22 | 7 | 101 |
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.51 |
Average class complexity | 47.75 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 9 | 18.37% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 2 | 4.08% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 64 | 96.97% |
▷ Anonymous functions | 2 | 3.03% |
Constants | 15 | |
▷ Global constants | 6 | 40.00% |
▷ Class constants | 9 | 60.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/favicon.png | 1.15KB | 0.46KB | ▼ 60.00% |
assets/img/amp-icon.png | 1.37KB | 1.50KB | 0.00% |
assets/img/adsense-setup.png | 7.98KB | 4.16KB | ▼ 47.86% |