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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.94MB] [CPU: ▼134.94ms] Passed 4 tests
Server-side resources used by Ads for WP - Advanced Ads & Adsense Solution for WP & AMP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.09 ▲0.26 | 35.23 ▲11.24 |
Dashboard /wp-admin | 4.28 ▲1.22 | 41.70 ▲3.15 |
Posts /wp-admin/edit.php | 4.31 ▲1.20 | 43.27 ▲12.44 |
Add New Post /wp-admin/post-new.php | 6.56 ▲1.12 | 78.65 ▼561.16 |
Media Library /wp-admin/upload.php | 4.19 ▲1.18 | 29.31 ▲7.03 |
Settings /wp-admin/edit.php?post_type=adsforwp&page=adsforwp | 4.20 | 36.45 |
Ads /wp-admin/edit.php?post_type=adsforwp | 4.26 | 37.85 |
Groups /wp-admin/edit.php?post_type=adsforwp-groups | 4.26 | 35.88 |
Analytics /wp-admin/edit.php?post_type=adsforwp&page=adsforwp-analytics | 4.19 | 32.77 |
Server storage [IO: ▲2.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 88 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_adsforwp_stats |
New WordPress options |
---|
wisdom_last_track_time |
adsforwp_ip_request_2022-03-11 |
adsforwp-database-on-first-load |
adsforwp_activation_date |
wisdom_admin_emails |
widget_adsforwp_ads_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Ads for WP - Advanced Ads & Adsense Solution for WP & AMP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,256 ▲605 | 18.42 ▲2.76 | 11.28 ▲3.84 | 76.55 ▼1.85 |
Dashboard /wp-admin | 3,373 ▲474 | 7.99 ▲1.83 | 165.83 ▲37.09 | 178.40 ▲2.59 |
Posts /wp-admin/edit.php | 3,230 ▲487 | 5.58 ▲2.36 | 99.05 ▲29.71 | 144.96 ▲1.94 |
Add New Post /wp-admin/post-new.php | 2,041 ▼1,766 | 20.46 ▲3.37 | 412.51 ▼52.54 | 174.57 ▲8.75 |
Media Library /wp-admin/upload.php | 2,013 ▲261 | 6.37 ▲0.87 | 119.75 ▼25.54 | 212.36 ▲35.43 |
Settings /wp-admin/edit.php?post_type=adsforwp&page=adsforwp | 3,365 | 5.49 | 127.35 | 169.63 |
Ads /wp-admin/edit.php?post_type=adsforwp | 2,049 | 5.43 | 92.84 | 142.43 |
Groups /wp-admin/edit.php?post_type=adsforwp-groups | 1,915 | 5.30 | 91.02 | 140.19 |
Analytics /wp-admin/edit.php?post_type=adsforwp&page=adsforwp-analytics | 1,527 | 5.02 | 83.65 | 123.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_adsforwp_stats
- Zombie WordPress options were found after uninstall: 6 options
- adsforwp_activation_date
- adsforwp-database-on-first-load
- widget_adsforwp_ads_widget
- adsforwp_ip_request_2022-03-11
- wisdom_admin_emails
- wisdom_last_track_time
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 103× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-for-wp/admin/ads-setup.php:3
- > 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/Batch.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/REST.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/Cache/Memcache.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/ads-for-wp/view/ads-type.php:696
- > 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/Cache/File.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/IO/Exception.php on line 18
- > PHP Warning
require_once(ADSFORWP_LIB_PATHGoogle/Client.php): failed to open stream: No such file or directory in wp-content/plugins/ads-for-wp/admin/inc/Google/Service/Resource.php on line 18
- > PHP Warning
require_once(ADSFORWP_LIB_PATHGoogle/Cache/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/ads-for-wp/admin/inc/Google/Cache/Null.php on line 18
- > PHP Warning
require_once(ADSFORWP_LIB_PATHGoogle/Auth/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/ads-for-wp/admin/inc/Google/Signer/P12.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes 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
The primary PHP file in "Ads for WP - Advanced Ads & Adsense Solution for WP & AMP" version 1.9.16.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected42,371 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 4,969 | 5,094 | 24,469 |
JavaScript | 14 | 3,103 | 2,535 | 15,990 |
CSS | 6 | 57 | 98 | 1,912 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 159)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 433.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 159.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 202 | |
▷ Abstract classes | 5 | 2.48% |
▷ Concrete classes | 197 | 97.52% |
▷ Final classes | 0 | 0.00% |
Methods | 1,851 | |
▷ Static methods | 23 | 1.24% |
▷ Public methods | 1,807 | 97.62% |
▷ Protected methods | 13 | 0.70% |
▷ Private methods | 31 | 1.67% |
Functions | 67 | |
▷ Named functions | 67 | 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 files were detected