Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.53ms] Passed 4 tests
Server-side resources used by WebP & SVG Support
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.86 ▼4.40 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.66 ▲3.00 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.00 ▲5.44 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.05 ▼18.67 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.76 ▲1.96 |
WebP & SVG Support /wp-admin/options-general.php?page=webp_svg_support | 3.24 | 32.82 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
webpsvg_allow_svg |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
webpsvg_allow_webp |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WebP & SVG Support
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.22 ▼1.16 | 1.92 ▼0.06 | 39.47 ▼4.13 |
Dashboard /wp-admin | 2,210 ▲25 | 4.86 ▼0.04 | 97.37 ▼19.91 | 38.68 ▼4.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.00 | 40.82 ▲0.81 | 35.18 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.15 ▲4.83 | 674.35 ▲61.30 | 47.10 ▼7.45 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▲0.14 | 110.74 ▲5.20 | 48.85 ▲2.11 |
WebP & SVG Support /wp-admin/options-general.php?page=webp_svg_support | 817 | 2.02 | 23.85 | 23.39 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/webp-svg-support/webp-svg-support.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function Webpsvg_Support\\Core\\wp_die() in wp-content/plugins/webp-svg-support/core/bootstrap.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: webp, support, media, safe, svg
webp-svg-support/webp-svg-support.php Passed 13 tests
Analyzing the main PHP file in "WebP & SVG Support" version 1.3.0
90 characters long description:
Allows WebP and SVG image file upload into WordPress media and sanitizes before saving it.
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
There were no executable files found in this plugin143 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 207 | 143 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 11 | 52.38% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin