Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/woo-simple-ads-server/woo-ads-server.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; WooAds_Server has a deprecated constructor
Server metrics [RAM: ▼1.94MB] [CPU: ▼62.82ms] Passed 4 tests
This is a short check of server-side resources used by Woo Simple Ads Server
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.86 ▼33.91 |
Dashboard /wp-admin | 2.07 ▼1.27 | 5.68 ▼69.18 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 5.30 ▼46.35 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 6.13 ▼101.82 |
Media Library /wp-admin/upload.php | 2.07 ▼1.15 | 6.00 ▼31.19 |
All campaigns /wp-admin/edit.php?post_type=was_campaign | 2.08 | 6.42 |
Add campaign /wp-admin/post-new.php?post_type=was_campaign | 2.08 | 5.91 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Woo Simple Ads Server: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.33 ▼0.23 | 1.61 ▲0.06 | 39.17 ▼0.63 |
Dashboard /wp-admin | 2,227 ▲50 | 5.61 ▲0.01 | 82.25 ▼7.26 | 42.24 ▲1.25 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.99 ▲0.00 | 33.80 ▼7.67 | 36.39 ▼5.45 |
Add New Post /wp-admin/post-new.php | 1,562 ▲27 | 18.36 ▲0.12 | 609.22 ▼55.09 | 75.48 ▲2.90 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.19 ▼0.03 | 93.48 ▼9.86 | 43.74 ▼4.66 |
All campaigns /wp-admin/edit.php?post_type=was_campaign | 1,094 | 1.97 | 31.12 | 35.25 |
Add campaign /wp-admin/post-new.php?post_type=was_campaign | 1,584 | 2.62 | 51.83 | 60.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/woo-simple-ads-server/woo-ads-server.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; WooAds_Server has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=was_campaign
- > Deprecated in wp-content/plugins/woo-simple-ads-server/woo-ads-server.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; WooAds_Server has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=was_campaign
- > Deprecated in wp-content/plugins/woo-simple-ads-server/includes/helpers/class-was-banner.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; WooAds_Banner has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=was_campaign
- > Deprecated in wp-content/plugins/woo-simple-ads-server/includes/meta-boxes/class-was-meta-box-campaign-products.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; WooAds_Meta_Box_Campaign_Products has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=was_campaign
- > Deprecated in wp-content/plugins/woo-simple-ads-server/includes/meta-boxes/class-was-meta-box-campaign-scripts.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; WooAds_Meta_Box_Campaign_Scripts has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=was_campaign
- > Deprecated in wp-content/plugins/woo-simple-ads-server/includes/meta-boxes/class-was-meta-box-product-banners.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; WooAds_Meta_Box_Product_Banners has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=was_campaign
- > Deprecated in wp-content/plugins/woo-simple-ads-server/includes/post-types/class-was-campaign.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; WooAds_Campaigns has a deprecated constructor
- > GET request to /wp-admin/post-new.php?post_type=was_campaign
- > Deprecated in wp-admin/includes/template.php+1443
Non-static method WooAds_Meta_Box_Campaign_Products::output() should not be called statically
- > GET request to /wp-admin/post-new.php?post_type=was_campaign
- > Deprecated in wp-content/plugins/woo-simple-ads-server/includes/helpers/class-was-banner.php+80
Non-static method WooAds_Banner::set_sizes() should not be called statically
- > GET request to /wp-admin/post-new.php?post_type=was_campaign
- > Deprecated in wp-admin/includes/template.php+1443
Non-static method WooAds_Meta_Box_Campaign_Scripts::output() should not be called statically
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
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)
There were no browser issues found
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
3 plugin tags: woocommerce, server, ads
woo-simple-ads-server/woo-ads-server.php 92% from 13 tests
Analyzing the main PHP file in "Woo Simple Ads Server" version 1.0
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-simple-ads-server.php" instead of "woo-ads-server.php")
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
There were no executable files found in this plugin5,788 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 4 | 4 | 5,121 |
PHP | 6 | 78 | 148 | 368 |
CSS | 1 | 6 | 10 | 165 |
JavaScript | 3 | 13 | 8 | 98 |
Markdown | 1 | 20 | 0 | 36 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 28 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
42 PNG files occupy 1.03MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dump_banners/88x31_blue.png | 3.75KB | 2.30KB | ▼ 38.66% |
images/dump_banners/120x90_blue.png | 10.16KB | 4.58KB | ▼ 54.92% |
images/dump_banners/240x400_blue.png | 40.82KB | 12.41KB | ▼ 69.60% |
images/dump_banners/120x600_blue.png | 33.39KB | 10.43KB | ▼ 68.76% |
images/dump_banners/180x150_blue.png | 21.23KB | 7.57KB | ▼ 64.34% |