Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.79MB] [CPU: ▼6.57ms] Passed 4 tests
A check of server-side resources used by Advanced Advertising System
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.85 | 43.53 ▼0.80 |
Dashboard /wp-admin | 4.13 ▲0.79 | 53.09 ▼13.22 |
Posts /wp-admin/edit.php | 4.18 ▲0.83 | 56.64 ▲5.23 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 91.03 ▼9.47 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 39.29 ▼2.77 |
Campaign /wp-admin/edit.php?post_type=campaign | 4.10 | 41.33 |
Advertiser /wp-admin/edit.php?post_type=advertiser | 4.10 | 44.06 |
Zone /wp-admin/edit.php?post_type=zone | 4.10 | 38.44 |
Banner /wp-admin/edit.php?post_type=ads_banner | 4.10 | 40.41 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_aas_logged |
New WordPress options |
---|
can_compress_scripts |
widget_aas_widget |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking 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 / | 2,975 ▲214 | 14.16 ▼0.02 | 6.52 ▲4.42 | 41.41 ▼1.64 |
Dashboard /wp-admin | 2,270 ▲70 | 5.00 ▼0.88 | 108.48 ▼5.41 | 44.47 ▲1.76 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.26 ▲0.20 | 34.51 ▼6.17 | 36.01 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 22.77 ▲5.28 | 648.27 ▼22.33 | 56.36 ▲5.57 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.50 ▲0.31 | 97.23 ▼10.19 | 44.00 ▼4.19 |
Campaign /wp-admin/edit.php?post_type=campaign | 1,290 | 2.36 | 33.01 | 30.09 |
Advertiser /wp-admin/edit.php?post_type=advertiser | 1,183 | 2.36 | 34.04 | 26.60 |
Zone /wp-admin/edit.php?post_type=zone | 1,282 | 2.35 | 32.17 | 31.14 |
Banner /wp-admin/edit.php?post_type=ads_banner | 1,277 | 2.23 | 32.58 | 35.03 |
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
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_aas_logged
- Zombie WordPress options were found after uninstall: 7 options
- widget_aas_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > 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/includes/class-log.php:301
- > PHP Fatal error
Uncaught Error: Class 'AbstractProvider' not found in wp-content/plugins/advanced-advertising-system/includes/crawler/Fixtures/Headers.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: Class 'WP_Widget' not found in wp-content/plugins/advanced-advertising-system/widget.php:5
- > 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 __() 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
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: Call to undefined function add_action() in wp-content/plugins/advanced-advertising-system/shortcode.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 42 tag instead of maximum 10
advanced-advertising-system/advanced_advertising_system.php 85% from 13 tests
"Advanced Advertising System" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-advertising-system.php" instead of "advanced_advertising_system.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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
Success! There were 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
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
js/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
image/default_avatar.png | 0.50KB | 0.33KB | ▼ 33.53% |