Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.84MB] [CPU: ▼32.79ms] Passed 4 tests
Server-side resources used by Awesome Ads - Google Adsense and Others
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 33.43 ▼5.44 |
Dashboard /wp-admin | 3.10 ▼0.20 | 24.43 ▼25.46 |
Posts /wp-admin/edit.php | 3.10 ▼0.25 | 24.46 ▼23.81 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.78 | 23.64 ▼71.11 |
Media Library /wp-admin/upload.php | 3.10 ▼0.13 | 22.49 ▼10.77 |
Awesome Ads /wp-admin/admin.php?page=awesome-ads | 3.10 | 24.78 |
Awesome Ads /wp-admin/options-general.php?page=awesome-ads | 3.10 | 22.42 |
Google Adsense /wp-admin/admin.php?page=awesome_google_ads | 3.10 | 24.51 |
Chitika /wp-admin/admin.php?page=awesome_chitika_ads | 3.10 | 19.20 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
awesome_ads_chitika_json |
can_compress_scripts |
awesome-ads-networks |
widget_theysaidso_widget |
awesome_ads_users_google |
awesome_ads_google_json |
awesome_ads_users_chitika |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Awesome Ads - Google Adsense and Others
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.19 ▼1.46 | 1.69 ▲0.02 | 43.69 ▲1.57 |
Dashboard /wp-admin | 2,231 ▲43 | 5.80 ▼0.10 | 102.16 ▼1.57 | 38.74 ▼0.54 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 1.99 ▼0.01 | 33.45 ▼8.13 | 33.55 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,558 ▲38 | 22.94 ▼0.33 | 679.70 ▲24.26 | 62.82 ▲8.54 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.21 ▲0.03 | 96.92 ▼5.07 | 44.42 ▼0.54 |
Awesome Ads /wp-admin/admin.php?page=awesome-ads | 987 | 3.11 | 60.95 | 25.85 |
Awesome Ads /wp-admin/options-general.php?page=awesome-ads | 990 | 3.10 | 58.39 | 27.98 |
Google Adsense /wp-admin/admin.php?page=awesome_google_ads | 1,712 | 2.90 | 43.66 | 29.50 |
Chitika /wp-admin/admin.php?page=awesome_chitika_ads | 1,659 | 2.88 | 39.66 | 26.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/awesome-ads/libs/functions.php+162
The each() function is deprecated. This message will be suppressed on further calls
- This plugin does not fully uninstall, leaving 11 options in the database
- awesome_ads_chitika_json
- awesome_ads_google_json
- awesome-ads-networks
- db_upgraded
- theysaidso_admin_options
- awesome_ads_users_chitika
- widget_recent-posts
- widget_recent-comments
- awesome_ads_users_google
- can_compress_scripts
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=awesome_chitika_ads
- > Deprecated in wp-content/plugins/awesome-ads/libs/functions.php+162
The each() function is deprecated. This message will be suppressed on further calls
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=awesome_chitika_ads
- > Notice in wp-content/plugins/awesome-ads/libs/functions.php+182
Undefined variable: response
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=awesome_chitika_ads
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=awesome_chitika_ads
- > User deprecated in wp-includes/functions.php+5453
Function get_users_of_blog is deprecated since version 3.1.0! Use get_users() instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/awesome-ads/admin_pages/js/main_js.php
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-ads/admin_pages/js/chitika_ads_js.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/awesome-ads/libs/awesome_google_ads.php:3
- > PHP Warning
Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-ads/admin_pages/js/google_ads_js.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/awesome-ads/admin_pages/js/chitika_ads_js.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/awesome-ads/admin_pages/js/google_ads_js.php:48
- > PHP Warning
Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-ads/admin_pages/js/chitika_ads_js.php on line 2
- > PHP Warning
Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-ads/admin_pages/js/google_ads_js.php on line 1
- > PHP Warning
Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-ads/admin_pages/js/chitika_ads_js.php on line 3
- > PHP Warning
Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-ads/admin_pages/js/google_ads_js.php on line 2
- > PHP Warning
Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-ads/admin_pages/js/google_ads_js.php on line 1
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=awesome_chitika_ads
- > Javascript (severe) in unknown
/wp-admin/js/common.min.js?ver=6.3.1 1:6139 Uncaught TypeError: W(...).on is not a function
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=awesome_chitika_ads
- > Javascript (severe) in unknown
/wp-includes/js/heartbeat.min.js?ver=6.3.1 1:5086 Uncaught TypeError: i.on is not a function
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=awesome_chitika_ads
- > Javascript (severe) in unknown
/wp-includes/js/wp-auth-check.min.js?ver=6.3.1 1:502 Uncaught TypeError: i(...).on is not a function
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=awesome_chitika_ads
- > Javascript (severe) in unknown
https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js 15:13142 Uncaught TypeError: W(...).on is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Options.), #2 (Google Adsense Options.), #3 (Chitika Options.)
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
awesome-ads/awesome-ads.php Passed 13 tests
The entry point to "Awesome Ads - Google Adsense and Others" version 1.0.5 is a PHP file that has certain tags in its header comment area
127 characters long description:
Awesome Ads is the easiest way to show Google Adsense and Others ads in your wordpress. You don't need to copy and paste codes.
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 detected2,296 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 167 | 43 | 1,501 |
JavaScript | 2 | 139 | 41 | 709 |
CSS | 1 | 9 | 4 | 86 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 66.19KB | 32.74KB | ▼ 50.54% |
assets/icon-128x128.png | 6.33KB | 3.10KB | ▼ 51.09% |
admin_pages/resources/colorpicker/hv.png | 2.80KB | 7.32KB | 0.00% |
assets/banner-772x250.png | 17.01KB | 8.26KB | ▼ 51.45% |
admin_pages/resources/jquery.tzCheckbox/background.png | 4.07KB | 1.99KB | ▼ 51.13% |