Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼9.76ms] Passed 4 tests
An overview of server-side resources used by Opes WP Ads Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 27.65 ▼11.72 |
Dashboard /wp-admin | 3.81 ▲0.51 | 54.57 ▲4.23 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 35.42 ▼10.87 |
Add New Post /wp-admin/post-new.php | 5.88 ▼0.00 | 68.25 ▼20.69 |
Media Library /wp-admin/upload.php | 3.67 ▲0.45 | 39.84 ▲8.08 |
OWP Ads Manager /wp-admin/admin.php?page=wpadsmngr_uwxl_options | 3.55 | 30.34 |
New ad /wp-admin/post-new.php?post_type=wpadsmngr_uwxl_ad | 3.67 | 40.98 |
Ad sizes /wp-admin/admin.php?page=wpadsmngr_uwxl_options_ad_sizes | 3.55 | 29.51 |
All ads /wp-admin/edit.php?post_type=wpadsmngr_uwxl_ad | 3.62 | 31.73 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 78 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpadsmngr_uwxl_options_positions_widgets |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
wpadsmngr_uwxl_options_ad_sizes |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Opes WP Ads Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲209 | 13.71 ▼0.88 | 5.77 ▲4.17 | 48.25 ▲6.94 |
Dashboard /wp-admin | 2,246 ▲58 | 5.87 ▲0.99 | 105.95 ▲3.33 | 78.09 ▲35.77 |
Posts /wp-admin/edit.php | 2,158 ▲90 | 2.08 ▲0.09 | 34.69 ▲1.39 | 32.78 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,730 ▲188 | 23.00 ▲4.72 | 644.96 ▲43.97 | 57.72 ▲4.21 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.12 ▼0.07 | 105.10 ▲10.43 | 50.23 ▲2.55 |
OWP Ads Manager /wp-admin/admin.php?page=wpadsmngr_uwxl_options | 931 | 2.35 | 63.21 | 46.57 |
New ad /wp-admin/post-new.php?post_type=wpadsmngr_uwxl_ad | 3,873 | 5.16 | 94.33 | 93.19 |
Ad sizes /wp-admin/admin.php?page=wpadsmngr_uwxl_options_ad_sizes | 1,024 | 2.92 | 75.61 | 47.91 |
All ads /wp-admin/edit.php?post_type=wpadsmngr_uwxl_ad | 1,159 | 2.04 | 33.73 | 30.66 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/opes-wp-ads-manager/inc/admin/controller/1-activation-Hook-ToLoad.php+34
Undefined variable: _WPADSMNGR_uwxl__InitData
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- wpadsmngr_uwxl_options_ad_sizes
- can_compress_scripts
- widget_recent-comments
- wpadsmngr_uwxl_options_positions_widgets
Smoke tests 25% 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
- 42 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpadsmngr_uwxl_ad
- > User notice in wp-includes/functions.php+5905
Function 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 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
Please fix the following
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: params in wp-content/plugins/opes-wp-ads-manager/inc/admin/controller/3-Ad-Add-Admin-Column-ToLoad.php on line 104
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/opes-wp-ads-manager/inc/common/controller/1-restictions-ToLoad.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/opes-wp-ads-manager/inc/admin/controller/1-activation-Hook-ToLoad.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/opes-wp-ads-manager/opes-wp-ads-manager.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opes-wp-ads-manager/inc/admin/controller/2-Ad-Metaboxes-ToLoad.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opes-wp-ads-manager/inc/admin/controller/8-Add-Images-Sizes-ToLoad.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opes-wp-ads-manager/conf.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/opes-wp-ads-manager/inc/admin/controller/3-Ad-Add-Admin-Column-ToLoad.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opes-wp-ads-manager/inc/admin/controller/12-ajax-ToLoad.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/opes-wp-ads-manager/inc/common/controller/localize-scripts.php:3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpadsmngr_uwxl_options_ad_sizes
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-accordion,jquery-ui-tabs,jquery-ui-controlgroup,jquery-ui-checkboxradi&load%5Bchunk_1%5D=o,jquery-ui-button,jquery-ui-spinner&ver=6.3.1 1:28721 Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The new child element contains the parent.
- > GET request to /wp-admin/edit.php?post_type=wpadsmngr_uwxl_ad
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/opes-wp-ads-manager/inc/admin/assets/js/script-admin-ads-list.js?ver=1.2.0:6:44)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=wpadsmngr_uwxl_ad
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: ads, adverts, manager, ad, plugin...
opes-wp-ads-manager/opes-wp-ads-manager.php 92% from 13 tests
The main file in "Opes WP Ads Manager" v. 1.2.0 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:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin5,108 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 295 | 154 | 2,370 |
PHP | 18 | 634 | 293 | 2,250 |
CSS | 10 | 44 | 18 | 488 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 22 | 27.50% |
▷ Public methods | 61 | 76.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 23.75% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 39 | |
▷ Global constants | 39 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/css/images/ui-bg_gloss-wave_100_ece8da_500x100.png | 5.62KB | 1.20KB | ▼ 78.68% |
inc/admin/assets/images/unchecked_checkbox-40.png | 0.59KB | 0.49KB | ▼ 16.23% |
inc/admin/assets/images/icon-20-red.png | 0.87KB | 0.93KB | 0.00% |
inc/admin/assets/css/images/ui-bg_highlight-hard_95_cccccc_1x100.png | 0.25KB | 0.15KB | ▼ 38.49% |
inc/admin/assets/css/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |