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.16MB] [CPU: ▼2.83ms] Passed 4 tests
A check of server-side resources used by Avif Express
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.35 ▲2.21 |
Dashboard /wp-admin | 3.47 ▲0.17 | 50.85 ▼4.36 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 49.85 ▲6.06 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 89.08 ▼12.68 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 38.91 ▲3.52 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 152 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
avifoperationmode |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Avif Express
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.72 ▲0.38 | 1.62 ▼0.04 | 42.88 ▼0.72 |
Dashboard /wp-admin | 2,201 ▲24 | 5.65 ▼0.03 | 85.96 ▼5.20 | 38.77 ▼3.24 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.95 ▼0.06 | 35.94 ▼0.65 | 32.89 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.61 ▲5.23 | 705.25 ▲73.92 | 62.98 ▲3.81 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.16 ▼0.03 | 96.07 ▼7.44 | 46.86 ▲5.06 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- avifoperationmode
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Exception\\ParseException' not found in wp-content/plugins/avif-express/core/vendor/symfony/css-selector/Exception/SyntaxErrorException.php:24
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Php80\\PhpToken' not found in wp-content/plugins/avif-express/core/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Exception\\ExceptionInterface' not found in wp-content/plugins/avif-express/core/vendor/symfony/css-selector/Exception/ParseException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/avif-express/core/vendor/symfony/polyfill-php80/PhpToken.php:19
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/avif-express/core/vendor/voku/simple_html_dom/build/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/avif-express/core/vendor/voku/simple_html_dom/build/generate_docs.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/avif-express/core/vendor/symfony/css-selector/Parser/Handler/NumberHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/avif-express/core/vendor/symfony/css-selector/Node/ClassNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleHtmlDom' not found in wp-content/plugins/avif-express/core/vendor/voku/simple_html_dom/src/voku/helper/SimpleHtmlDom.php:14
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleXmlDomNode' not found in wp-content/plugins/avif-express/core/vendor/voku/simple_html_dom/src/voku/helper/SimpleXmlDomNode.php:10
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/avif-express/core/vendor/symfony/css-selector/Node/FunctionNode.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Requires php: Invalid version format
avif-express/avif-express.php Passed 13 tests
The main PHP script in "Avif Express" version 2023.06.28 is automatically included on every request by WordPress
37 characters long description:
Convert Images to AVIF and serve them
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,795 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 103 | 2,006 | 5,565 | 7,269 |
SVG | 4 | 0 | 0 | 1,290 |
Markdown | 9 | 348 | 1 | 765 |
JSON | 6 | 0 | 0 | 381 |
YAML | 2 | 14 | 0 | 88 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 11.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 13 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 7 | 8.86% |
▷ Concrete classes | 72 | 91.14% |
▷ Final classes | 5 | 6.94% |
Methods | 821 | |
▷ Static methods | 94 | 11.45% |
▷ Public methods | 776 | 94.52% |
▷ Protected methods | 30 | 3.65% |
▷ Private methods | 15 | 1.83% |
Functions | 25 | |
▷ Named functions | 10 | 40.00% |
▷ Anonymous functions | 15 | 60.00% |
Constants | 36 | |
▷ Global constants | 15 | 41.67% |
▷ Class constants | 21 | 58.33% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/app/backend/assets/imgs/avif.png | 7.18KB | 3.61KB | ▼ 49.65% |