Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.69ms] Passed 4 tests
This is a short check of server-side resources used by Avify
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.96 ▼0.08 |
Dashboard /wp-admin | 3.37 ▲0.06 | 42.92 ▼1.07 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 43.61 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 80.81 ▼14.42 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.23 ▲4.46 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Avify
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.36 ▼0.23 | 1.65 ▼0.10 | 44.73 ▲0.59 |
Dashboard /wp-admin | 2,239 ▲72 | 5.61 ▼0.03 | 84.83 ▼33.30 | 37.25 ▼3.80 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.00 ▼0.02 | 36.08 ▼1.90 | 34.60 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.03 ▼0.08 | 676.09 ▲44.61 | 56.44 ▲7.80 |
Media Library /wp-admin/upload.php | 1,445 ▲42 | 4.23 ▼0.00 | 99.78 ▲0.79 | 42.66 ▼0.04 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/avify/templates/checkout.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/avify/avify-payments-gateway.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avify/avify-custom-options.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/avify/avify-shipping.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/avify/includes/checkout.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avify/avify-checkout.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: checkout, avify, woocommerce, orders, payment gateway
avify/avify-wordpress-initializer.php 77% from 13 tests
The entry point to "Avify" version 1.2.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("avify.php" instead of "avify-wordpress-initializer.php")
- Git Repository: An alternative Git repository was detected
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,231 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 368 | 518 | 2,532 |
PO File | 3 | 150 | 96 | 406 |
Markdown | 2 | 87 | 0 | 181 |
JSON | 3 | 0 | 0 | 90 |
YAML | 1 | 2 | 0 | 20 |
CSS | 1 | 2 | 1 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 29 | 42.65% |
▷ Public methods | 61 | 89.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.29% |
Functions | 31 | |
▷ Named functions | 24 | 77.42% |
▷ Anonymous functions | 7 | 22.58% |
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
4 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/banner-1544x500.png | 53.26KB | 22.08KB | ▼ 58.55% |
.wordpress-org/banner-772x250.png | 25.80KB | 10.71KB | ▼ 58.49% |
.wordpress-org/icon-128x128.png | 6.04KB | 3.06KB | ▼ 49.30% |
.wordpress-org/icon-256x256.png | 16.16KB | 6.69KB | ▼ 58.61% |