Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼170.04ms] Passed 4 tests
A check of server-side resources used by Bannerly
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 36.05 ▲6.53 |
Dashboard /wp-admin | 3.11 ▲0.05 | 45.65 ▲2.62 |
Posts /wp-admin/edit.php | 3.23 ▲0.11 | 45.65 ▲2.69 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 87.90 ▼687.28 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 33.21 ▲1.83 |
Bannerly /wp-admin/options-general.php?page=bannerly | 3.03 | 27.80 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Bannerly
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,833 ▲237 | 18.13 ▲2.48 | 56.08 ▲44.22 | 43.97 ▼6.25 |
Dashboard /wp-admin | 3,001 ▲67 | 6.20 ▲0.16 | 134.33 ▼2.32 | 104.88 ▼8.51 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.72 ▲0.01 | 65.78 ▲3.64 | 87.60 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,505 ▲7 | 18.84 ▲0.07 | 360.72 ▼33.12 | 112.17 ▼0.64 |
Media Library /wp-admin/upload.php | 1,813 ▲6 | 5.04 ▲0.01 | 145.95 ▲4.49 | 114.54 ▼2.31 |
Bannerly /wp-admin/options-general.php?page=bannerly | 1,097 | 2.34 | 58.49 | 81.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/bannerly/admin/partials/bannerly-admin-display.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bannerly/public/partials/bannerly-public-display.php:15
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: bar, announce, annoucnement, banners, coupon...
bannerly/bannerly.php Passed 13 tests
Analyzing the main PHP file in "Bannerly" version 1.0.0
78 characters long description:
Load simple, beautiful customizable banners directly into your Wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin259 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 98 | 535 | 253 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 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 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
There are no PNG files in this plugin