Benchmarks
Plugin footprint 83% 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.11MB] [CPU: ▼1.25ms] Passed 4 tests
Server-side resources used by Iran Alves - Ebit Banner para Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.74 ▼1.73 |
Dashboard /wp-admin | 3.41 ▲0.10 | 52.03 ▲2.98 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.92 ▲3.12 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.01 ▼9.38 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.84 ▲3.94 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Iran Alves - Ebit Banner para Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.28 ▼1.08 | 4.80 ▲2.64 | 42.71 ▼2.99 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼1.03 | 107.84 ▼13.52 | 41.22 ▼2.82 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.17 ▲0.20 | 38.67 ▲1.00 | 35.57 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,518 ▼1 | 17.73 ▼5.38 | 637.26 ▼17.44 | 66.06 ▲13.28 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▲0.05 | 100.35 ▼0.10 | 42.89 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-display-ebit-banner/iran-alves-ebit-banner-for-woocommerce.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WoocommerceDisplayEbitBanner' not found in wp-content/plugins/woo-display-ebit-banner/inc/class-wc-qsti-admin.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Donate link: Please fix this invalid url: "Pix para iranjosealves@gmail.com"
woo-display-ebit-banner/iran-alves-ebit-banner-for-woocommerce.php 92% from 13 tests
The main file in "Iran Alves - Ebit Banner para Woocommerce" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-display-ebit-banner.php" instead of "iran-alves-ebit-banner-for-woocommerce.php")
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
Good job! No executable or dangerous file extensions detected505 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 156 | 226 | 432 |
Markdown | 1 | 20 | 0 | 52 |
CSS | 2 | 2 | 1 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 82.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 17.39% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected