Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.25ms] Passed 4 tests
Analyzing server-side resources used by Universal Google Adsense and Ads manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.03 ▲1.74 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.89 ▲0.26 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 52.58 ▲10.40 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.77 ▼9.63 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 32.84 ▼1.37 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
udp_installed_agents |
can_compress_scripts |
theysaidso_admin_options |
widget_universal-google-adsense-and-ads-manager-advertisement-widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Universal Google Adsense and Ads manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲94 | 14.69 ▲0.53 | 3.60 ▲2.12 | 35.41 ▼3.18 |
Dashboard /wp-admin | 2,223 ▲43 | 5.53 ▼0.10 | 90.81 ▼5.25 | 40.56 ▼5.94 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.95 ▼0.05 | 39.96 ▲4.57 | 36.24 ▲5.56 |
Add New Post /wp-admin/post-new.php | 6,246 ▲4,720 | 25.91 ▲2.58 | 912.15 ▲267.52 | 55.28 ▲5.42 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.20 ▼0.00 | 97.85 ▼5.32 | 42.05 ▼1.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_universal-google-adsense-and-ads-manager-advertisement-widget
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- udp_installed_agents
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/universal-google-adsense-and-ads-manager/public/partials/ugaam-public-display.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/universal-google-adsense-and-ads-manager/includes/customizer/controls/class-customizer-responsive-dimension-control.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/universal-google-adsense-and-ads-manager/includes/customizer/controls/class-customizer-toggle-control.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/universal-google-adsense-and-ads-manager/includes/customizer/functions/dynamic-style-script.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/universal-google-adsense-and-ads-manager/includes/customizer/functions/customizer-fields.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/universal-google-adsense-and-ads-manager/includes/functions/template-hooks.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/universal-google-adsense-and-ads-manager/includes/widgets/class-ugaam-ad-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/universal-google-adsense-and-ads-manager/includes/udp/init.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/universal-google-adsense-and-ads-manager/admin/partials/ugaam-admin-display.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
universal-google-adsense-and-ads-manager/universal-google-adsense-and-ads-manager.php 92% from 13 tests
The primary PHP file in "Universal Google Adsense and Ads manager" version 1.1.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,460 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,336 | 1,849 | 3,404 |
CSS | 4 | 223 | 34 | 495 |
Sass | 9 | 115 | 1 | 329 |
JavaScript | 4 | 127 | 146 | 232 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 15.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 11 | 10.09% |
▷ Public methods | 96 | 88.07% |
▷ Protected methods | 2 | 1.83% |
▷ Private methods | 11 | 10.09% |
Functions | 81 | |
▷ Named functions | 72 | 88.89% |
▷ Anonymous functions | 9 | 11.11% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin