Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼270.74ms] Passed 4 tests
This is a short check of server-side resources used by BannerWoo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.11 | 33.69 ▲14.39 |
Dashboard /wp-admin | 3.06 ▲0.01 | 43.79 ▲3.86 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 40.29 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.35 ▼1,077.23 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 30.24 ▼9.02 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for BannerWoo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,700 ▲94 | 16.28 ▲0.77 | 8.92 ▼1.37 | 48.27 ▼3.21 |
Dashboard /wp-admin | 2,962 ▲112 | 6.02 ▲0.23 | 133.38 ▲6.85 | 100.36 ▼8.98 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▲0.00 | 64.68 ▲0.13 | 95.01 ▲4.61 |
Add New Post /wp-admin/post-new.php | 1,853 ▼0 | 19.05 ▼0.11 | 353.15 ▼15.41 | 105.81 ▼7.76 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.00 ▼0.01 | 148.64 ▲2.45 | 102.93 ▼16.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bannerwoo/includes/banner-option.php:5
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: sell, banner, multilingual, woocommerce, advertising...
bannerwoo/bannerwoo.php Passed 13 tests
The main file in "BannerWoo" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
Sell banner ads on autopilot with woocommerce. Simple, clean and lightweight.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin945 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 204 | 149 | 619 |
PO File | 1 | 58 | 58 | 138 |
CSS | 1 | 0 | 3 | 130 |
JavaScript | 2 | 6 | 8 | 58 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.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 Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin