Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/ultimate-ads-manager/includes/common.php+60
Trying to access array offset on value of type null
Server metrics [RAM: ▼2.53MB] [CPU: ▼346.54ms] Passed 4 tests
Server-side resources used by Ultimate Ads Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.67 | 4.04 ▼48.54 |
Dashboard /wp-admin | 1.86 ▼1.55 | 4.62 ▼28.36 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 4.20 ▼31.78 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 3.86 ▼1,276.96 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 3.49 ▼28.88 |
Groups /wp-admin/edit.php?post_type=codeneric_ad_group | 1.86 | 4.14 |
Adverts /wp-admin/edit.php?post_type=codeneric_ad | 1.86 | 4.21 |
Settings /wp-admin/edit.php?post_type=codeneric_ad&page=settings | 1.86 | 3.86 |
Statistics /wp-admin/edit.php?post_type=codeneric_ad&page=statistics | 1.86 | 8.10 |
Premium /wp-admin/edit.php?post_type=codeneric_ad&page=uam-premium | 1.86 | 3.61 |
Places /wp-admin/edit.php?post_type=codeneric_ad_place | 1.86 | 4.51 |
Support /wp-admin/edit.php?post_type=codeneric_ad&page=codeneric_uam_support | 1.86 | 3.90 |
Server storage [IO: ▲4.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 78 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_codeneric_uam_events |
New WordPress options |
---|
_site_transint_timeout_browser_a7cef1c8465454dd4238b5bc2f2e819 |
uam_redirect_parent_folder_name_expiration_time |
widget_codeneric_ad_widget |
codeneric_uam_register_status |
codeneric_uam_activation_date |
cc_ads_manage_curr_version |
uam_redirect_parent_folder_name |
codeneric_uam_uuid |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ultimate Ads Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,904 ▲162 | 17.74 ▲2.16 | 27.15 ▲19.38 | 2.22 ▼0.17 |
Dashboard /wp-admin | 2,979 ▲128 | 6.17 ▲0.00 | 119.38 ▼11.52 | 168.39 ▲8.59 |
Posts /wp-admin/edit.php | 2,783 ▲89 | 3.24 ▲0.01 | 64.62 ▲1.52 | 140.13 ▲2.53 |
Add New Post /wp-admin/post-new.php | 1,720 ▲1 | 19.32 ▼2.80 | 386.87 ▼24.45 | 157.43 ▲1.39 |
Media Library /wp-admin/upload.php | 1,787 ▲89 | 5.53 ▲0.00 | 138.37 ▼4.91 | 200.70 ▲13.14 |
Groups /wp-admin/edit.php?post_type=codeneric_ad_group | 1,501 | 3.17 | 61.18 | 123.79 |
Adverts /wp-admin/edit.php?post_type=codeneric_ad | 1,622 | 3.23 | 67.23 | 122.60 |
Settings /wp-admin/edit.php?post_type=codeneric_ad&page=settings | 1,522 | 7.04 | 218.20 | 196.35 |
Statistics /wp-admin/edit.php?post_type=codeneric_ad&page=statistics | 1,093 | 3.37 | 69.24 | 142.06 |
Premium /wp-admin/edit.php?post_type=codeneric_ad&page=uam-premium | 1,221 | 5.95 | 165.55 | 131.25 |
Places /wp-admin/edit.php?post_type=codeneric_ad_place | 1,501 | 3.17 | 62.67 | 122.75 |
Support /wp-admin/edit.php?post_type=codeneric_ad&page=codeneric_uam_support | 1,461 | 2.42 | 54.19 | 170.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/ultimate-ads-manager/includes/common.php+60
Trying to access array offset on value of type null
- Zombie tables detected upon uninstall: 1 table
- wp_codeneric_uam_events
- This plugin did not uninstall successfully, leaving 8 options in the database
- cc_ads_manage_curr_version
- widget_codeneric_ad_widget
- _site_transint_timeout_browser_a7cef1c8465454dd4238b5bc2f2e819
- codeneric_uam_activation_date
- uam_redirect_parent_folder_name_expiration_time
- codeneric_uam_register_status
- codeneric_uam_uuid
- uam_redirect_parent_folder_name
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 22 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=codeneric_ad&page=codeneric_uam_support
- > Notice in wp-content/plugins/ultimate-ads-manager/includes/common.php+62
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=codeneric_ad&page=statistics
- > User notice in wp-includes/functions.php+5768
WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ultimate-ads-manager/public/partials/public-display.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimate-ads-manager/admin/widget.php:24
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ultimate-ads-manager/admin/elementor/elementor-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/ultimate-ads-manager/admin/partials/admin-widget.php:51
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-ads-manager/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/ultimate-ads-manager/tests/test-config.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-ads-manager/admin/partials/admin-widget.php on line 47
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-ads-manager/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/ultimate-ads-manager/public/partials/public-template.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function deactivate_plugins() in wp-content/plugins/ultimate-ads-manager/admin/class-ultimate-ads-manager-admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-ads-manager/admin/elementor/elementor.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=codeneric_ad&page=settings
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/edit.php?post_type=codeneric_ad&page=uam-premium
- > Network (severe)
https://headgame.draco.uberspace.de/wpps/paid?plugin_id=774f1eeb-a6be-4225-a9cd-df3a634adc26 - Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== ultimate-ads-manager ===
)
ultimate-ads-manager/ultimate-ads-manager.php Passed 13 tests
The main PHP script in "Ultimate Ads Manager" version 2.4.1 is automatically included on every request by WordPress
78 characters long description:
Display advertisements on your website and get reports about clicks and views.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin5,007 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,589 | 1,405 | 4,171 |
HTML | 2 | 77 | 20 | 447 |
JavaScript | 11 | 27 | 264 | 302 |
PO File | 1 | 13 | 13 | 43 |
CSS | 2 | 3 | 8 | 22 |
XML | 2 | 2 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 52 | 26.40% |
▷ Public methods | 174 | 88.32% |
▷ Protected methods | 2 | 1.02% |
▷ Private methods | 21 | 10.66% |
Functions | 26 | |
▷ Named functions | 25 | 96.15% |
▷ Anonymous functions | 1 | 3.85% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banktransfer.png | 3.75KB | 2.43KB | ▼ 35.24% |
assets/icon-128x128.PNG | 2.72KB | 1.68KB | ▼ 38.29% |
assets/paypal.png | 3.07KB | 2.98KB | ▼ 3.08% |
assets/creditcard.png | 0.51KB | 0.30KB | ▼ 40.77% |