Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.89ms] Passed 4 tests
A check of server-side resources used by Webgains Ads Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.60 ▲1.14 |
Dashboard /wp-admin | 3.33 ▼0.02 | 43.83 ▼16.24 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.16 ▼4.43 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.07 ▼12.03 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.80 ▲5.88 |
Webgains Ads Widget /wp-admin/options-general.php?page=webgains_ads_widget | 3.22 | 32.44 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_webgainsads |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_webgains-ad-widget-id |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Webgains Ads Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.03 | 1.51 ▼0.09 | 36.79 ▼2.97 |
Dashboard /wp-admin | 2,196 ▲15 | 5.52 ▼0.21 | 81.57 ▼17.34 | 38.03 ▼4.32 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.03 | 34.96 ▼2.99 | 34.40 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.24 ▼0.34 | 691.96 ▼18.85 | 52.46 ▼1.97 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.26 ▲0.09 | 107.47 ▲8.55 | 47.04 ▲2.49 |
Webgains Ads Widget /wp-admin/options-general.php?page=webgains_ads_widget | 914 | 2.33 | 31.40 | 25.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webgains-ads-widget/WebgainsAdsWidget_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webgains-ads-widget/WebgainsAdsWidget_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webgains-ads-widget/WebgainsAdsWidget_ads.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webgains-ads-widget/WebgainsAdsWidget_widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: affiliate, page, plugin, webgains, widget...
webgains-ads-widget/WebgainsAdsWidget.php 92% from 13 tests
The primary PHP file in "Webgains Ads Widget" version 1.5.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("webgains-ads-widget.php" instead of "WebgainsAdsWidget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin444 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 117 | 36 | 444 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
There are no PNG files in this plugin