Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/ajax-adsense/easy-adsense-widget.php+52
Function create_function() is deprecated
Server metrics [RAM: ▼1.76MB] [CPU: ▼51.40ms] Passed 4 tests
An overview of server-side resources used by AJAX Plugin for AdSense
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 9.08 ▼28.65 |
Dashboard /wp-admin | 2.24 ▼1.06 | 8.54 ▼43.05 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 10.73 ▼44.69 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.64 | 9.74 ▼89.15 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 9.05 ▼28.71 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 90 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_ez_adsense_options |
New WordPress options |
---|
widget_ezadslu |
can_compress_scripts |
widget_ezadswidget |
db_upgraded |
widget_ezadssearch |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
AJAX Plugin for AdSense: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.22 ▼0.13 | 1.98 ▲0.34 | 44.26 ▲3.40 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▲0.01 | 88.74 ▼0.11 | 40.07 ▲0.57 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.98 ▼0.05 | 35.14 ▼7.39 | 35.38 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.57 ▲0.31 | 615.00 ▼93.66 | 56.32 ▼8.39 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▲0.01 | 102.19 ▲0.84 | 41.76 ▼2.55 |
AJAX AdSense Lite /wp-admin/wp-google-adsense.php | 26 | 0.42 | 0.08 | 14.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/ajax-adsense/easy-adsense-widget.php+52
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ez_adsense_options
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_ezadswidget
- theysaidso_admin_options
- widget_ezadslu
- db_upgraded
- widget_ezadssearch
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ajax-adsense/wp-google-adsense.php
- > /wp-content/plugins/ajax-adsense/easy-adsense.php
- 49× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ajax-adsense/ezKillLite.php on line 21
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ajax-adsense/ezKillLite.php on line 21
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ajax-adsense/ezKillLite.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'EzGA' not found in wp-content/plugins/ajax-adsense/admin/box-more-info.php:2
- > PHP Fatal error
Uncaught Error: Class 'EzGA' not found in wp-content/plugins/ajax-adsense/admin/footer.php:24
- > PHP Warning
chdir(): No such file or directory (errno 2) in wp-content/plugins/ajax-adsense/EZWP.php on line 35
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ajax-adsense/ezKillLite.php on line 21
- > PHP Notice
Undefined variable: ezAdminUrl in wp-content/plugins/ajax-adsense/admin/footer.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function openBox() in wp-content/plugins/ajax-adsense/admin/box-ad-alignment.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_login_url() in wp-content/plugins/ajax-adsense/admin/lock.php:13
- > 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
- > GET request to /wp-admin/wp-google-adsense.php
- > Network (severe)
wp-admin/wp-google-adsense.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (AJAX Plugin for AdSense Dashboard.), #2 (How to set the plugin options.), #3 (Advanced configuration of the plugin.), #4 (Options to support safety, compatibility, mobile devices and category/post control.)
ajax-adsense/easy-adsense.php 85% from 13 tests
The main PHP file in "AJAX Plugin for AdSense" ver. 9.30 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ajax-adsense.php" instead of "easy-adsense.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 193 characters long)
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 detected7,533 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 387 | 68 | 4,941 |
CSS | 8 | 152 | 81 | 1,173 |
SVG | 2 | 0 | 0 | 749 |
JavaScript | 8 | 63 | 55 | 670 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 31.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 81 | 50.94% |
▷ Public methods | 159 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
12 PNG files occupy 0.45MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/bootstrap-colorpicker/saturation.png | 8.61KB | 5.13KB | ▼ 40.41% |
admin/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |
admin/img/paypal-partner.png | 18.11KB | 6.98KB | ▼ 61.46% |
screenshot-2.png | 76.42KB | 83.14KB | 0.00% |
admin/img/bootstrap-colorpicker/alpha.png | 3.19KB | 1.68KB | ▼ 47.45% |