Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▲1.38ms] Passed 4 tests
A check of server-side resources used by Converter for Media - Optimize images | Convert WebP & AVIF
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 39.67 ▲0.36 |
Dashboard /wp-admin | 3.74 ▲0.44 | 47.84 ▼3.77 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 52.63 ▲5.89 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 91.93 ▲3.05 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 43.04 ▲13.29 |
Converter for Media /wp-admin/options-general.php?page=webpc_admin_page | 3.74 | 54.73 |
Converter for Media /wp-admin/upload.php?page=webpc_optimization_page | 3.65 | 46.29 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- Illegal file modification detected: 6 files (14.92KB) outside of "wp-content/plugins/webp-converter-for-media/" and "wp-content/uploads/"
- (new file) wp-content/.htaccess
- (new file) wp-content/uploads-webpc/.htaccess
- (new file) wp-content/uploads-webpc/uploads/webp-converter-for-media-test.png.webp
- (new file) wp-content/uploads-webpc/uploads/webp-converter-for-media-test.png2.webp
- (new file) wp-content/uploads-webpc/uploads/webp-converter-for-media-test.png.avif
- (new file) wp-content/uploads-webpc/plugins/webp-converter-for-media/assets/img/icon-test.png.webp
Filesystem: 251 new files
Database: no new tables, 18 new options
New WordPress options |
---|
webpc_is_new_installation |
webpc_stats_webp_unconverted |
webpc_stats_installation_date |
db_upgraded |
widget_theysaidso_widget |
webpc_token_data |
webpc_notice_thanks |
webpc_stats_webp_all |
webpc_notice_upgrade |
webpc_stats_first_version |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Converter for Media - Optimize images | Convert WebP & AVIF
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲91 | 14.43 ▲0.09 | 1.61 ▼0.05 | 40.72 ▼3.15 |
Dashboard /wp-admin | 2,255 ▲81 | 5.79 ▲0.16 | 98.64 ▼4.93 | 61.55 ▲18.30 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.22 ▲0.18 | 40.48 ▲3.08 | 36.24 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,723 ▲197 | 22.41 ▼1.32 | 637.37 ▼17.83 | 58.70 ▲1.04 |
Media Library /wp-admin/upload.php | 1,516 ▲116 | 4.32 ▲0.11 | 100.20 ▼4.00 | 78.34 ▲35.88 |
Converter for Media /wp-admin/options-general.php?page=webpc_admin_page | 1,553 | 1.82 | 34.38 | 55.60 |
Converter for Media /wp-admin/upload.php?page=webpc_optimization_page | 1,237 | 1.80 | 29.70 | 42.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
- 127× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WebpConverter\\Loader\\LoaderAbstract' not found in wp-content/plugins/webp-converter-for-media/src/Loader/HtaccessLoader.php:18
- > PHP Fatal error
Uncaught Error: Class 'WebpConverter\\Settings\\Option\\OptionAbstract' not found in wp-content/plugins/webp-converter-for-media/src/Settings/Option/AccessTokenOption.php:10
- > PHP Fatal error
Uncaught Error: Class 'WebpConverter\\Conversion\\Endpoint\\EndpointAbstract' not found in wp-content/plugins/webp-converter-for-media/src/Conversion/Endpoint/FilesStatsEndpoint.php:15
- > PHP Fatal error
Uncaught Error: Class 'WebpConverter\\Conversion\\Directory\\DirectoryAbstract' not found in wp-content/plugins/webp-converter-for-media/src/Conversion/Directory/UploadsWebpcDirectory.php:8
- > PHP Fatal error
Uncaught Error: Class 'WebpConverter\\Conversion\\Format\\FormatAbstract' not found in wp-content/plugins/webp-converter-for-media/src/Conversion/Format/WebpFormat.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WebpConverter\\Exception\\ExceptionInterface' not found in wp-content/plugins/webp-converter-for-media/src/Exception/ExceptionAbstract.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WebpConverter\\Error\otice\oticeInterface' not found in wp-content/plugins/webp-converter-for-media/src/Error/Notice/ApiLimitExceededNotice.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WebpConverter\\Settings\\Option\\OptionInterface' not found in wp-content/plugins/webp-converter-for-media/src/Settings/Option/OptionAbstract.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WebpConverter\\Error\otice\oticeInterface' not found in wp-content/plugins/webp-converter-for-media/src/Error/Notice/PathUploadsUnavailableNotice.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WebpConverter\\Error\\Detector\\DetectorInterface' not found in wp-content/plugins/webp-converter-for-media/src/Error/Detector/TokenStatusDetector.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: convert webp, optimize images, compress images, image optimization, webp
webp-converter-for-media/webp-converter-for-media.php 92% from 13 tests
The main file in "Converter for Media - Optimize images | Convert WebP & AVIF" v. 5.11.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected11,233 lines of code in 237 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 231 | 2,310 | 5,432 | 11,135 |
JSON | 1 | 0 | 0 | 76 |
SVG | 1 | 0 | 0 | 18 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 14 | |
Traits | 0 | |
Classes | 178 | |
▷ Abstract classes | 10 | 5.62% |
▷ Concrete classes | 168 | 94.38% |
▷ Final classes | 0 | 0.00% |
Methods | 940 | |
▷ Static methods | 65 | 6.91% |
▷ Public methods | 846 | 90.00% |
▷ Protected methods | 8 | 0.85% |
▷ Private methods | 86 | 9.15% |
Functions | 21 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 21 | 100.00% |
Constants | 191 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 191 | 100.00% |
▷ Public constants | 191 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-headline.png | 10.20KB | 5.60KB | ▼ 45.06% |
assets/img/icon-test.png | 21.08KB | 9.86KB | ▼ 53.24% |
assets/img/author.png | 15.52KB | 15.82KB | 0.00% |
assets/img/logo-bg.png | 0.92KB | 1.30KB | 0.00% |