Benchmarks
Plugin footprint 83% from 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.44MB] [CPU: ▼0.96ms] Passed 4 tests
Server-side resources used by AVIF Support | AVIF Uploader
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.44 | 43.82 ▲8.02 |
Dashboard /wp-admin | 3.75 ▲0.44 | 49.72 ▲0.64 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 49.96 ▲3.05 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 93.13 ▼14.80 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 39.24 ▲7.27 |
AVIF Support /wp-admin/upload.php?page=gpls-avfstw-avif-support-settings | 3.59 | 30.88 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AVIF Support | AVIF Uploader
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.38 ▼0.18 | 1.93 ▲0.44 | 46.35 ▲7.96 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.04 | 80.95 ▼9.30 | 40.53 ▲1.98 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▲0.06 | 39.56 ▲0.17 | 36.41 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.26 ▲4.96 | 596.02 ▼44.55 | 49.56 ▼22.11 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.17 ▼0.04 | 95.30 ▼6.01 | 40.89 ▼9.84 |
AVIF Support /wp-admin/upload.php?page=gpls-avfstw-avif-support-settings | 1,346 | 2.11 | 30.17 | 53.82 |
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
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Undefined constant 'ABSPATH' in wp-content/plugins/avif-support/includes/AVIFGDEditor.php:4
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_AVFSTW\\Base' not found in wp-content/plugins/avif-support/includes/AvifSupport.php:9
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_AVFSTW\\Pages\\PagesBase\\AdminPage' not found in wp-content/plugins/avif-support/includes/Pages/SettingsPage.php:11
- > 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 on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in avif-support/assets to your readme.txt
avif-support/gpls-avif-support.php 77% from 13 tests
Analyzing the main PHP file in "AVIF Support | AVIF Uploader" version 1.0.4
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("avif-support.php" instead of "gpls-avif-support.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,199 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 384 | 1,200 | 2,191 |
CSS | 5 | 0 | 5 | 5 |
JavaScript | 3 | 0 | 6 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 61 | 43.26% |
▷ Public methods | 107 | 75.89% |
▷ Protected methods | 14 | 9.93% |
▷ Private methods | 20 | 14.18% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.36MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/Core/assets/images/wp-watermark-images.png | 38.45KB | 14.82KB | ▼ 61.45% |
includes/Core/assets/dist/images/logo-icon-md.png | 0.91KB | 0.96KB | 0.00% |
includes/Core/assets/dist/images/logo-icon-lg.png | 3.56KB | 2.72KB | ▼ 23.62% |
includes/Core/assets/images/woo-cart-limiter.png | 17.63KB | 7.17KB | ▼ 59.36% |
includes/Core/assets/images/wp-paypal-subscriptions.png | 17.91KB | 7.09KB | ▼ 60.39% |