Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.38ms] Passed 4 tests
Server-side resources used by Casino & Sports Betting Affiliate Auto Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.16 ▲0.86 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.66 ▼12.51 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.72 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.01 ▼2.91 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.57 ▲3.17 |
Server storage [IO: ▲6.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Casino & Sports Betting Affiliate Auto Ads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.39 ▼1.10 | 8.41 ▲6.92 | 38.47 ▼0.51 |
Dashboard /wp-admin | 2,211 ▲34 | 5.54 ▼0.12 | 82.86 ▼10.41 | 38.38 ▼6.26 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.02 ▲0.05 | 40.42 ▼1.27 | 34.96 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.28 ▼0.31 | 619.02 ▼26.71 | 62.49 ▲5.95 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.22 ▼0.00 | 94.13 ▼7.32 | 44.87 ▲3.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/casino-sports-betting-affiliate-auto-ads/public/partials/settings-page-public-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/casino-sports-betting-affiliate-auto-ads/admin/partials/settings-page-admin-display.php:103
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/casino-sports-betting-affiliate-auto-ads/settings-page.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/casino-sports-betting-affiliate-auto-ads/admin/partials/settings-page-admin-settings-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (With 1-click, enable popover ads that float over the screen with bonus offers.) image required
casino-sports-betting-affiliate-auto-ads/settings-page.php 85% from 13 tests
The primary PHP file in "Casino & Sports Betting Affiliate Auto Ads" version 1.8.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("casino-sports-betting-affiliate-auto-ads.php" instead of "settings-page.php")
- Description: The description should be shorter than 140 characters (currently 349 characters long)
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
There were no executable files found in this plugin809 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 183 | 595 | 715 |
JavaScript | 5 | 18 | 79 | 94 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 3.04MB with 2.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/static/affiliate_id.png | 198.73KB | 55.00KB | ▼ 72.32% |
assets/landing/3690.png | 66.03KB | 12.24KB | ▼ 81.46% |
assets/banner-772x250.png | 105.51KB | 30.92KB | ▼ 70.69% |
assets/icon-128x128.png | 16.12KB | 8.25KB | ▼ 48.83% |
assets/landing/2.png | 80.68KB | 6.00KB | ▼ 92.57% |