Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/woo-avantgarde-payment-gateway/includes/avantgardelib.php+41
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.72MB] [CPU: ▼53.57ms] Passed 4 tests
Server-side resources used by WooCommerce AvantGarde Safexpay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.19 | 5.00 ▼34.72 |
Dashboard /wp-admin | 2.30 ▼1.05 | 11.63 ▼50.05 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 7.21 ▼40.24 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 6.70 ▼89.28 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 6.36 ▼27.17 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WooCommerce AvantGarde Safexpay: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.60 ▼1.05 | 1.60 ▼0.35 | 39.53 ▼4.01 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.18 | 102.37 ▼15.08 | 39.11 ▼6.81 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.04 | 40.86 ▲2.55 | 36.81 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,538 ▲4 | 23.44 ▲0.29 | 692.34 ▼0.15 | 55.75 ▼4.66 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.16 ▼0.14 | 98.57 ▼0.25 | 45.51 ▲3.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/woo-avantgarde-payment-gateway/includes/avantgardelib.php+41
Array and string offset access syntax with curly braces is deprecated
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Donate link: Invalid url: "paypal.com"
woo-avantgarde-payment-gateway/avantgarde.php 92% from 13 tests
"WooCommerce AvantGarde Safexpay" version 1.0.1'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: The principal plugin file should be the same as the plugin slug ("woo-avantgarde-payment-gateway.php" instead of "avantgarde.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,208 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 222 | 660 | 1,208 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 11 | 26.19% |
▷ Public methods | 40 | 95.24% |
▷ Protected methods | 2 | 4.76% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/avanthgarde.png | 15.57KB | 4.14KB | ▼ 73.41% |