Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.97ms] Passed 4 tests
This is a short check of server-side resources used by Webp Attachments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.47 ▼3.60 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.91 ▲2.42 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.43 ▼7.92 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.17 ▼14.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.68 ▲3.19 |
Webp Attachments /wp-admin/options-general.php?page=webp-config | 3.25 | 32.11 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Webp Attachments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.44 ▲0.06 | 1.72 ▼0.54 | 36.71 ▼10.63 |
Dashboard /wp-admin | 2,204 ▲13 | 5.79 ▲0.92 | 115.25 ▲10.27 | 42.92 ▼1.43 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.03 | 35.80 ▼5.44 | 29.56 ▼6.94 |
Add New Post /wp-admin/post-new.php | 1,414 ▼105 | 17.98 ▼5.16 | 590.60 ▼73.91 | 42.35 ▼4.54 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.18 ▼0.05 | 101.09 ▼1.77 | 40.64 ▼1.43 |
Webp Attachments /wp-admin/options-general.php?page=webp-config | 771 | 2.05 | 27.67 | 26.34 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/webp-attachments/views/config-admin.tpl.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/webp-attachments/ngwebpattachments.php:21
- > PHP Notice
Trying to get property 'gdLoaded' of non-object in wp-content/plugins/webp-attachments/views/config-admin.tpl.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== webp-attachments ===
)
webp-attachments/ngwebpattachments.php 85% from 13 tests
The main PHP script in "Webp Attachments" version 1.4 is automatically included on every request by WordPress
The following require your attention:
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "5.6")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webp-attachments.php" instead of "ngwebpattachments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected239 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 23 | 239 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin