Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/sas-web-ads-banner-video/libs/sidebar_full_banner_widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; SASWEB_full_Banner_widget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼50.16ms] Passed 4 tests
An overview of server-side resources used by SAS WEB ads-banner-video Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.18 | 9.27 ▼33.40 |
Dashboard /wp-admin | 2.30 ▼1.01 | 11.39 ▼39.26 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 11.82 ▼42.12 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 9.90 ▼85.85 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 10.98 ▼25.38 |
Sidebar Ads Banner-video /wp-admin/options-general.php?page=sas-web-ads-banner-video/sidebar-ads-banner-video.php | 2.30 | 11.13 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_sasweb-full-video-widget |
widget_sasweb-full-banner-widget |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_sasweb-half-banner-widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SAS WEB ads-banner-video Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲60 | 13.27 ▼1.28 | 2.17 ▲0.08 | 45.06 ▲3.01 |
Dashboard /wp-admin | 2,207 ▲19 | 4.87 ▲0.01 | 104.58 ▼5.36 | 38.23 ▼4.61 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▲0.01 | 36.66 ▼1.17 | 33.89 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.13 ▲0.08 | 663.11 ▼18.39 | 57.93 ▼12.03 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.25 ▲0.09 | 102.30 ▼1.87 | 45.65 ▲4.76 |
Sidebar Ads Banner-video /wp-admin/options-general.php?page=sas-web-ads-banner-video/sidebar-ads-banner-video.php | 825 | 2.01 | 25.10 | 32.15 |
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
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SASWEB_half_Banner_widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- widget_sasweb-full-banner-widget
- widget_sasweb-full-video-widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_sasweb-half-banner-widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=sas-web-ads-banner-video/sidebar-ads-banner-video.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SASWEB_half_Banner_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=sas-web-ads-banner-video/sidebar-ads-banner-video.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SASWEB_full_Banner_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=sas-web-ads-banner-video/sidebar-ads-banner-video.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SASWEB_full_Video_Widget is deprecated since version 4.3.0! Use __construct() instead.
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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sas-web-ads-banner-video/libs/sidebar_full_video_banner_widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sas-web-ads-banner-video/libs/sidebar_full_video_banner_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sas-web-ads-banner-video/libs/sidebar_help_instruction.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sas-web-ads-banner-video/libs/sidebar_full_banner_widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sidebar ads, full width sidebar banner, half width sidebar, full width video sidebar
sas-web-ads-banner-video/sidebar-ads-banner-video.php 92% from 13 tests
Analyzing the main PHP file in "SAS WEB ads-banner-video Plugin" version 1.0.1
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sas-web-ads-banner-video.php" instead of "sidebar-ads-banner-video.php")
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
No dangerous file extensions were detected423 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 75 | 40 | 406 |
CSS | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-772x250.png | 181.23KB | 50.47KB | ▼ 72.15% |