Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/google-adsense-lite/google-adsense-widget.php+43
Function create_function() is deprecated
Server metrics [RAM: ▼1.77MB] [CPU: ▼56.70ms] Passed 4 tests
Server-side resources used by Ads EZ Plugin for Google AdSense
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 8.64 ▼35.13 |
Dashboard /wp-admin | 2.24 ▼1.10 | 9.21 ▼57.07 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 10.14 ▼42.07 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.64 | 9.88 ▼92.54 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 11.17 ▼25.92 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 90 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ez_adsense_options |
New WordPress options |
---|
widget_ggadswidget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Ads EZ Plugin for Google 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,797 ▲36 | 14.56 ▲0.09 | 1.76 ▲0.16 | 45.23 ▲3.85 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.06 | 91.50 ▲1.28 | 48.88 ▲10.20 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▼0.01 | 35.02 ▼5.22 | 36.45 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.56 ▼0.09 | 685.99 ▲5.20 | 54.91 ▲0.33 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▼0.02 | 98.60 ▼7.33 | 47.68 ▲0.69 |
Google AdSense Lite /wp-admin/wp-google-adsense.php | 26 | 0.42 | 0.11 | 15.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/google-adsense-lite/google-adsense-widget.php+43
Function create_function() is deprecated
- The uninstall procedure failed, leaving 1 table in the database
- wp_ez_adsense_options
- Zombie WordPress options were found after uninstall: 7 options
- widget_ggadswidget
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/google-adsense-lite/google-adsense.php
- > /wp-content/plugins/google-adsense-lite/wp-google-adsense.php
- 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'EzGA' not found in wp-content/plugins/google-adsense-lite/admin/promo.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function openBox() in wp-content/plugins/google-adsense-lite/admin/box-ad-alignment.php:3
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/google-adsense-lite/ezKillLite.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/google-adsense-lite/EzWidget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/google-adsense-lite/EzWidget.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-adsense-lite/ezKillLite.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'EzGA' not found in wp-content/plugins/google-adsense-lite/admin/box-ad-alignment-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_login_url() in wp-content/plugins/google-adsense-lite/admin/lock.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/google-adsense-lite/admin/box-suppressing-ads-options.php:2
- > PHP Warning
chdir(): No such file or directory (errno 2) in wp-content/plugins/google-adsense-lite/EZWP.php on line 35
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > 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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Ads EZ Plugin for Google AdSense "Overview" tab.), #2 (How to set the options for Ads EZ Plugin for Google AdSense.), #3 (Advanced configuration of the plugin.), #4 (Options to support safety, compatibility, mobile devices and category/post control.)
google-adsense-lite/google-adsense.php 85% from 13 tests
The main PHP script in "Ads EZ Plugin for Google AdSense" version 4.20 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("google-adsense-lite.php" instead of "google-adsense.php")
- Description: The description should be shorter than 140 characters (currently 245 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin6,967 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 346 | 64 | 4,375 |
CSS | 8 | 152 | 81 | 1,173 |
SVG | 2 | 0 | 0 | 749 |
JavaScript | 8 | 63 | 55 | 670 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 33.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 150 | |
▷ Static methods | 81 | 54.00% |
▷ Public methods | 150 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.48MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 58.49KB | 63.08KB | 0.00% |
admin/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |
screenshot-2.png | 102.21KB | 112.04KB | 0.00% |
admin/img/bootstrap-colorpicker/saturation.png | 8.61KB | 5.13KB | ▼ 40.41% |
admin/img/install.png | 194.75KB | 56.39KB | ▼ 71.05% |