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 gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼9.44ms] Passed 4 tests
An overview of server-side resources used by Adsmonetizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 48.79 ▲4.13 |
Dashboard /wp-admin | 3.41 ▲0.10 | 40.93 ▼14.11 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.75 ▼4.34 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.35 ▼18.42 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.75 ▼0.87 |
Switch to New Interface /wp-admin/admin.php?page=adsensei_switch_to_new | 3.39 | 36.14 |
Ad Settings /wp-admin/admin.php?page=adsensei-settings | 3.45 | 40.57 |
Server storage [IO: ▲9.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 325 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_adsensei_stats |
wp_adsensei_single_stats_ |
New WordPress options |
---|
adsensei-mode |
adsensei_import_classic_ads_popup |
adsenseiAdResetDeleted |
theysaidso_admin_options |
adsenseiAdReset_optionsDeleted |
widget_adsensei_ads_widget |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
adsenseiAdReset |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Adsmonetizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,116 ▲355 | 13.95 ▼0.40 | 9.38 ▲7.51 | 37.90 ▼7.56 |
Dashboard /wp-admin | 2,374 ▲194 | 4.87 ▼0.79 | 97.28 ▲4.77 | 42.66 ▲1.32 |
Posts /wp-admin/edit.php | 2,280 ▲177 | 2.53 ▲0.56 | 43.31 ▲5.64 | 38.61 ▲2.34 |
Add New Post /wp-admin/post-new.php | 6,343 ▲4,803 | 19.21 ▲1.03 | 841.09 ▲191.62 | 38.68 ▼22.47 |
Media Library /wp-admin/upload.php | 1,570 ▲170 | 4.44 ▲0.22 | 105.31 ▼1.56 | 49.26 ▲5.42 |
Switch to New Interface /wp-admin/admin.php?page=adsensei_switch_to_new | 2,900 | 16.91 | 490.62 | 106.92 |
Ad Settings /wp-admin/admin.php?page=adsensei-settings | 1,926 | 15.07 | 535.87 | 60.94 |
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
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_adsensei_single_stats_
- wp_adsensei_stats
- Zombie WordPress options were found after uninstall: 13 options
- widget_theysaidso_widget
- adsensei_import_classic_ads_popup
- widget_adsensei_ads_widget
- widget_recent-comments
- widget_recent-posts
- adsensei_settings
- can_compress_scripts
- adsensei-mode
- db_upgraded
- adsenseiAdReset_optionsDeleted
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adsensei-settings
- > Notice in wp-content/plugins/adsensei-b30/includes/scripts.php+174
Trying to get property 'data' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adsensei-settings
- > Notice in wp-content/plugins/adsensei-b30/includes/scripts.php+174
Trying to get property 'signupURL' of non-object
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
The following issues need your attention
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/adsensei-b30/includes/vendor/vi/views/error.php
- > /wp-content/plugins/adsensei-b30/includes/vendor/vi/views/partials/footer.php
- > /wp-content/plugins/adsensei-b30/includes/vendor/vi/views/signup.php
- > /wp-content/plugins/adsensei-b30/includes/vendor/vi/views/notices.php
- > /wp-content/plugins/adsensei-b30/includes/vendor/vi/views/partials/header.php
- 71× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'wpadsensei\\Forms\\Elements' not found in wp-content/plugins/adsensei-b30/includes/admin/Forms/Elements/Date.php:10
- > PHP Notice
Undefined variable: loginAPI in wp-content/plugins/adsensei-b30/includes/vendor/vi/views/not_logged_in.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function ElementorAdsensei\\add_action() in wp-content/plugins/adsensei-b30/includes/elementor/widget.php:30
- > PHP Fatal error
Uncaught Error: Class 'wpadsensei\\adSettings' not found in wp-content/plugins/adsensei-b30/includes/vendor/vi/views/ad_settings.php:12
- > PHP Notice
Undefined variable: demoPageURL in wp-content/plugins/adsensei-b30/includes/vendor/vi/views/login.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'wpadsensei\\Elements' not found in wp-content/plugins/adsensei-b30/includes/Forms/Elements/TextAreaHidden.php:10
- > PHP Fatal error
Uncaught Error: Class 'wpadsensei\\Elements' not found in wp-content/plugins/adsensei-b30/includes/Forms/Elements/DateTime.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/adsensei-b30/includes/vendor/vi/views/login.php:29
- > PHP Fatal error
Uncaught Error: Call to a member function getRevenue() on null in wp-content/plugins/adsensei-b30/includes/vendor/vi/views/revenue.php:18
- > PHP Fatal error
Uncaught Error: Class 'wpadsensei\\ElementsWithOptions' not found in wp-content/plugins/adsensei-b30/includes/Forms/Elements/Radio.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Requires at least: Invalid plugin version format
- Contributors: The plugin contributors field is missing
adsensei-b30/adSenseiB30.php 92% from 13 tests
This is the main PHP file of "Adsmonetizer" version 3.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("adsensei-b30.php" instead of "adSenseiB30.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected136,926 lines of code in 197 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 44 | 1,054 | 968 | 104,999 |
PHP | 127 | 4,504 | 6,427 | 22,646 |
CSS | 13 | 1,060 | 450 | 6,823 |
PO File | 7 | 513 | 531 | 1,348 |
JSX | 1 | 106 | 3 | 818 |
JSON | 2 | 0 | 0 | 275 |
Sass | 3 | 1 | 1 | 17 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 23.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 5 | 6.41% |
▷ Concrete classes | 73 | 93.59% |
▷ Final classes | 0 | 0.00% |
Methods | 618 | |
▷ Static methods | 34 | 5.50% |
▷ Public methods | 512 | 82.85% |
▷ Protected methods | 42 | 6.80% |
▷ Private methods | 64 | 10.36% |
Functions | 418 | |
▷ Named functions | 379 | 90.67% |
▷ Anonymous functions | 39 | 9.33% |
Constants | 34 | |
▷ Global constants | 9 | 26.47% |
▷ Class constants | 25 | 73.53% |
▷ Public constants | 25 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
105 PNG files occupy 1.10MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 52.69KB | 13.48KB | ▼ 74.42% |
admin/assets/js/src/images/skip_ads_icon.png | 2.41KB | 1.55KB | ▼ 35.72% |
assets/images/align_right.png | 1.10KB | 0.19KB | ▼ 82.76% |
admin/assets/js/src/images/double_click_icon.png | 2.11KB | 1.64KB | ▼ 22.49% |
admin/assets/js/src/images/ad_blindness_icon.png | 1.64KB | 1.41KB | ▼ 13.83% |