Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.70MB] [CPU: ▲24.09ms] Passed 4 tests
A check of server-side resources used by Google Adsense & Banner Ads by AdsforWP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.67 ▲2.21 | 65.53 ▲24.73 |
Dashboard /wp-admin | 7.55 ▲4.25 | 84.66 ▲36.73 |
Posts /wp-admin/edit.php | 7.58 ▲4.23 | 85.90 ▲33.76 |
Add New Post /wp-admin/post-new.php | 10.08 ▲4.19 | 117.84 ▲2.10 |
Media Library /wp-admin/upload.php | 7.38 ▲4.15 | 74.04 ▲35.78 |
Analytics /wp-admin/edit.php?post_type=adsforwp&page=adsforwp-analytics | 7.38 | 67.72 |
Groups /wp-admin/edit.php?post_type=adsforwp-groups | 7.45 | 69.80 |
Settings /wp-admin/edit.php?post_type=adsforwp&page=adsforwp | 7.41 | 68.51 |
Ads /wp-admin/edit.php?post_type=adsforwp | 7.45 | 72.96 |
Server storage [IO: ▲2.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 91 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_adsforwp_stats |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
adsforwp_ip_request_2023-10-14 |
adsforwp_activation_date |
db_upgraded |
widget_adsforwp_ads_widget |
widget_recent-comments |
widget_recent-posts |
adsforwp-database-on-first-load |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google Adsense & Banner Ads by AdsforWP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,119 ▲358 | 15.52 ▲1.14 | 1.84 ▼0.19 | 45.61 ▲3.40 |
Dashboard /wp-admin | 2,507 ▲327 | 6.90 ▲1.20 | 129.56 ▲40.58 | 44.19 ▲2.55 |
Posts /wp-admin/edit.php | 2,449 ▲349 | 3.86 ▲1.85 | 72.02 ▲35.45 | 38.52 ▲0.26 |
Add New Post /wp-admin/post-new.php | 6,516 ▲4,971 | 28.31 ▲5.05 | 880.17 ▲215.80 | 39.52 ▼14.23 |
Media Library /wp-admin/upload.php | 1,583 ▲189 | 4.83 ▲0.63 | 99.67 ▲4.52 | 48.00 ▲3.65 |
Analytics /wp-admin/edit.php?post_type=adsforwp&page=adsforwp-analytics | 1,150 | 3.73 | 55.59 | 28.25 |
Groups /wp-admin/edit.php?post_type=adsforwp-groups | 1,427 | 3.94 | 63.15 | 31.53 |
Settings /wp-admin/edit.php?post_type=adsforwp&page=adsforwp | 2,313 | 5.42 | 116.71 | 40.66 |
Ads /wp-admin/edit.php?post_type=adsforwp | 1,538 | 3.90 | 62.21 | 34.01 |
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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_adsforwp_stats
- Zombie WordPress options were found after uninstall: 10 options
- adsforwp-database-on-first-load
- widget_recent-comments
- adsforwp_ip_request_2023-10-14
- widget_adsforwp_ads_widget
- adsforwp_activation_date
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=adsforwp
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 104× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ADSFORWP_LIB_PATHGoogle/Client.php' (include_path='.:/usr/share/php') in wp-content/plugins/ads-for-wp/admin/inc/Google/IO/Abstract.php on line 22
- > PHP Fatal error
require_once(): Failed opening required 'ADSFORWP_LIB_PATHGoogle/Cache/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/ads-for-wp/admin/inc/Google/Cache/Apc.php on line 18
- > PHP Warning
Use of undefined constant ADSFORWP_LIB_PATH - assumed 'ADSFORWP_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ads-for-wp/admin/inc/Google/Http/Request.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'ADSFORWP_LIB_PATHGoogle/Client.php' (include_path='.:/usr/share/php') in wp-content/plugins/ads-for-wp/admin/inc/Google/Http/MediaFileUpload.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'ADSFORWP_LIB_PATHGoogle/Auth/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/ads-for-wp/admin/inc/Google/Auth/OAuth2.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'adsforwp_admin_common_functions' not found in wp-content/plugins/ads-for-wp/view/ad-groups.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-for-wp/view/visitor-condition.php:6
- > PHP Warning
Use of undefined constant ADSFORWP_LIB_PATH - assumed 'ADSFORWP_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ads-for-wp/admin/inc/Google/Signer/P12.php on line 18
- > PHP Warning
require_once(ADSFORWP_LIB_PATHGoogle/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/ads-for-wp/admin/inc/Google/Service/Exception.php on line 3
- > PHP Warning
require_once(ADSFORWP_LIB_PATHGoogle/Auth/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/ads-for-wp/admin/inc/Google/Auth/AppIdentity.php on line 25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in ads-for-wp/assets to your readme.txt
ads-for-wp/ads-for-wp.php 85% from 13 tests
"Google Adsense & Banner Ads by AdsforWP" version 1.9.25's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
- Description: The description should be shorter than 140 characters (currently 145 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected42,171 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 4,900 | 4,835 | 24,156 |
JavaScript | 15 | 3,111 | 2,548 | 16,069 |
CSS | 7 | 60 | 103 | 1,946 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 168)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 472.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 168.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 201 | |
▷ Abstract classes | 5 | 2.49% |
▷ Concrete classes | 196 | 97.51% |
▷ Final classes | 0 | 0.00% |
Methods | 1,829 | |
▷ Static methods | 23 | 1.26% |
▷ Public methods | 1,785 | 97.59% |
▷ Protected methods | 13 | 0.71% |
▷ Private methods | 31 | 1.69% |
Functions | 70 | |
▷ Named functions | 70 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 53 | |
▷ Global constants | 6 | 11.32% |
▷ Class constants | 47 | 88.68% |
▷ Public constants | 47 | 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
No PNG images were found in this plugin