Benchmarks
Plugin footprint 65% 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.78MB] [CPU: ▼322.23ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Advertising System
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.35 ▲0.83 | 72.43 ▲13.20 |
Dashboard /wp-admin | 4.19 ▲0.78 | 37.88 ▲2.53 |
Posts /wp-admin/edit.php | 4.42 ▲0.77 | 53.84 ▲14.66 |
Add New Post /wp-admin/post-new.php | 7.72 ▲0.74 | 95.91 ▼1,304.86 |
Media Library /wp-admin/upload.php | 4.14 ▲0.84 | 33.59 ▲0.21 |
Banner /wp-admin/edit.php?post_type=ads_banner | 4.18 | 59.24 |
Advertiser /wp-admin/edit.php?post_type=advertiser | 4.17 | 29.88 |
Zone /wp-admin/edit.php?post_type=zone | 4.18 | 28.44 |
Campaign /wp-admin/edit.php?post_type=campaign | 4.18 | 31.38 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_aas_logged |
New WordPress options |
---|
widget_aas_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Advertising System
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,956 ▲214 | 16.56 ▲0.99 | 11.02 ▲5.37 | 2.00 ▼0.19 |
Dashboard /wp-admin | 2,952 ▲91 | 6.22 ▲0.03 | 122.80 ▼9.69 | 162.82 ▼81.19 |
Posts /wp-admin/edit.php | 2,748 ▲57 | 3.27 ▼0.09 | 65.96 ▲2.00 | 215.31 ▲60.00 |
Add New Post /wp-admin/post-new.php | 1,711 ▲15 | 20.51 ▼1.16 | 452.83 ▼6.53 | 186.90 ▼28.28 |
Media Library /wp-admin/upload.php | 1,757 ▲59 | 5.64 ▲0.21 | 128.32 ▼10.60 | 197.14 ▲3.24 |
Banner /wp-admin/edit.php?post_type=ads_banner | 1,559 | 3.20 | 62.19 | 122.67 |
Advertiser /wp-admin/edit.php?post_type=advertiser | 1,515 | 3.34 | 91.79 | 117.33 |
Zone /wp-admin/edit.php?post_type=zone | 1,567 | 3.22 | 61.63 | 183.50 |
Campaign /wp-admin/edit.php?post_type=campaign | 1,576 | 3.22 | 59.81 | 200.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_aas_logged
- Zombie WordPress options were found after uninstall: 1 option
- widget_aas_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-advertising-system/includes/class-banner.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-advertising-system/includes/class-campaign.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-advertising-system/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/advanced-advertising-system/advanced_advertising_system.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-advertising-system/shortcode.php:13
- > PHP Fatal error
Uncaught Error: Class 'AbstractProvider' not found in wp-content/plugins/advanced-advertising-system/includes/crawler/Fixtures/Crawlers.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-advertising-system/includes/class-advertiser.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-advertising-system/includes/class-log.php:301
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-advertising-system/includes/class-zone.php:16
- > PHP Fatal error
Uncaught Error: Class 'AbstractProvider' not found in wp-content/plugins/advanced-advertising-system/includes/crawler/Fixtures/Exclusions.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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: Too many tags (42 tag instead of maximum 10); only the first 5 tags are used in your directory listing
advanced-advertising-system/advanced_advertising_system.php 85% from 13 tests
The main PHP file in "Advanced Advertising System" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-advertising-system.php" instead of "advanced_advertising_system.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin5,395 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 444 | 926 | 3,531 |
JavaScript | 5 | 165 | 62 | 1,158 |
PO File | 1 | 185 | 201 | 410 |
CSS | 2 | 9 | 2 | 296 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 26.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 12 | 11.54% |
▷ Public methods | 102 | 98.08% |
▷ Protected methods | 2 | 1.92% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/default_avatar.png | 0.50KB | 0.33KB | ▼ 33.53% |
js/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
js/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |