Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼4.63ms] Passed 4 tests
A check of server-side resources used by BC Simple Auto Ads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 37.15 ▼1.81 |
Dashboard /wp-admin | 3.53 ▲0.22 | 46.76 ▼3.06 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 51.23 ▲4.51 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 82.42 ▼15.19 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.15 ▲1.56 |
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu | 3.41 | 31.40 |
BC Simple Auto Ads /wp-admin/admin.php?page=bc_simple_auto_ads | 3.49 | 46.67 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for BC Simple Auto Ads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲86 | 13.24 ▼1.16 | 1.84 ▲0.04 | 40.61 ▼0.88 |
Dashboard /wp-admin | 2,238 ▲47 | 4.86 ▼1.05 | 107.53 ▲6.75 | 40.41 ▼5.80 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 2.05 ▼0.08 | 39.04 ▲4.76 | 35.91 ▲4.39 |
Add New Post /wp-admin/post-new.php | 1,564 ▲43 | 23.04 ▼0.12 | 657.19 ▼20.15 | 65.41 ▲9.17 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.19 ▼0.01 | 92.26 ▼5.51 | 41.02 ▼4.32 |
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu | 794 | 1.99 | 22.92 | 23.03 |
BC Simple Auto Ads /wp-admin/admin.php?page=bc_simple_auto_ads | 1,465 | 2.61 | 41.86 | 80.25 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function BinaryCarpenter\\BC_AA\\add_action() in wp-content/plugins/bc-simple-auto-ads/Initiator.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: ads, auto ads
bc-simple-auto-ads/Initiator.php 85% from 13 tests
Analyzing the main PHP file in "BC Simple Auto Ads" version 1.0
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bc-simple-auto-ads.php" instead of "Initiator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin31,149 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 7,491 | 741 | 19,296 |
CSS | 2 | 138 | 3,146 | 10,768 |
PHP | 9 | 386 | 512 | 1,085 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 27 | 37.50% |
▷ Public methods | 63 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 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
No PNG files were detected