Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/adsense-now-lite/adsense-now-frontend.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; AdSenseNowFront has a deprecated constructor
Server metrics [RAM: ▼1.57MB] [CPU: ▼49.16ms] Passed 4 tests
A check of server-side resources used by Now! plugin for AdSense
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.43 ▼1.04 | 10.69 ▼29.56 |
Dashboard /wp-admin | 2.45 ▼0.90 | 18.67 ▼46.04 |
Posts /wp-admin/edit.php | 2.45 ▼0.91 | 11.39 ▼35.61 |
Add New Post /wp-admin/post-new.php | 2.45 ▼3.44 | 13.53 ▼85.44 |
Media Library /wp-admin/upload.php | 2.45 ▼0.78 | 13.28 ▼21.01 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ez_adsense_options |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Now! plugin for AdSense
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 13.58 ▼0.66 | 1.67 ▼0.08 | 41.39 ▲0.59 |
Dashboard /wp-admin | 2,210 ▲19 | 5.93 ▲1.04 | 107.66 ▲2.97 | 35.89 ▼16.19 |
Posts /wp-admin/edit.php | 2,096 ▲25 | 2.01 ▼0.00 | 38.77 ▲3.22 | 33.99 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.20 ▲5.57 | 653.62 ▲27.98 | 55.57 ▲5.06 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▼0.07 | 93.78 ▼3.11 | 41.26 ▼0.93 |
AdSense Now! Lite /wp-admin/wp-google-adsense.php | 26 | 0.44 | 0.10 | 16.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/adsense-now-lite/adsense-now-frontend.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; AdSenseNowFront has a deprecated constructor
- The uninstall procedure failed, leaving 1 table in the database
- wp_ez_adsense_options
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/adsense-now-lite/adsense-now.php
- > /wp-content/plugins/adsense-now-lite/wp-google-adsense.php
- 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_login_url() in wp-content/plugins/adsense-now-lite/admin/lock.php:13
- > PHP Notice
Undefined variable: ezAdminUrl in wp-content/plugins/adsense-now-lite/admin/footer.php on line 14
- > PHP Warning
chdir(): No such file or directory (errno 2) in wp-content/plugins/adsense-now-lite/EZWP.php on line 35
- > PHP Notice
Undefined variable: ezAdminUrl in wp-content/plugins/adsense-now-lite/admin/footer.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'EzGA' not found in wp-content/plugins/adsense-now-lite/admin/tour.php:2
- > PHP Notice
Undefined variable: ezAdminUrl in wp-content/plugins/adsense-now-lite/admin/footer.php on line 19
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/adsense-now-lite/ezKillLite.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'EzGA' not found in wp-content/plugins/adsense-now-lite/admin/footer.php:24
- > PHP Notice
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues 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 important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Now! Plugin for AdSense Dashboard.), #2 (How to set the options for Now! Plugin for AdSense.), #3 (Advanced configuration of the plugin.), #4 (Options to support safety, compatibility, mobile devices and category/post control.)
adsense-now-lite/adsense-now.php 85% from 13 tests
The main file in "Now! plugin for AdSense" v. 6.20 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("adsense-now-lite.php" instead of "adsense-now.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 195 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
No dangerous file extensions were detected6,776 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 318 | 63 | 4,184 |
CSS | 8 | 152 | 81 | 1,173 |
SVG | 2 | 0 | 0 | 749 |
JavaScript | 8 | 63 | 55 | 670 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 134 | |
▷ Static methods | 80 | 59.70% |
▷ Public methods | 134 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.46MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/bootstrap-colorpicker/alpha-horizontal.png | 3.55KB | 1.62KB | ▼ 54.44% |
screenshot-4.png | 56.58KB | 61.26KB | 0.00% |
admin/img/bootstrap-colorpicker/hue-horizontal.png | 2.77KB | 0.47KB | ▼ 83.15% |
admin/img/ads-ez.png | 10.42KB | 4.52KB | ▼ 56.59% |
screenshot-1.png | 62.38KB | 66.23KB | 0.00% |