Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.17ms] Passed 4 tests
This is a short check of server-side resources used by ALFAcoins for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.00 ▲0.42 |
Dashboard /wp-admin | 3.31 ▲0.00 | 54.13 ▲6.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.14 ▼3.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.33 ▼7.62 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.11 ▲1.66 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
ALFAcoins for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.01 | 5.92 ▲4.34 | 49.28 ▲4.91 |
Dashboard /wp-admin | 2,209 ▲21 | 4.79 ▼0.22 | 99.63 ▼8.63 | 40.22 ▼0.40 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 34.46 ▲1.10 | 33.96 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.55 ▼4.47 | 595.74 ▼59.79 | 70.71 ▲16.14 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.22 ▲0.00 | 97.17 ▼2.56 | 41.77 ▼2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
The SRP test was a success
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 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (When selected, this is how the payment option will appear) image missing
- Tags: You are using too many tags: 16 tag instead of maximum 10
alfacoins-for-woocommerce/class-wc-gateway-alfacoins.php 92% from 13 tests
"ALFAcoins for WooCommerce" version 0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("alfacoins-for-woocommerce.php" instead of "class-wc-gateway-alfacoins.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin710 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 159 | 127 | 683 |
Markdown | 1 | 22 | 0 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 77.00 |
▷ Minimum class complexity | 77.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 112.90KB | 30.91KB | ▼ 72.62% |
assets/img/icon.png | 4.38KB | 2.11KB | ▼ 51.87% |
assets/screenshot-3.png | 91.01KB | 30.98KB | ▼ 65.96% |
assets/screenshot-4.png | 36.84KB | 14.25KB | ▼ 61.31% |
assets/screenshot-1.png | 16.79KB | 6.90KB | ▼ 58.91% |