Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.88ms] Passed 4 tests
Analyzing server-side resources used by WP WebPNative
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 34.88 ▼4.51 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.15 ▼2.66 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.07 ▲1.77 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.29 ▼14.10 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.81 ▲5.19 |
WP WebPNative /wp-admin/options-general.php?page=wpwebpnative | 3.25 | 42.96 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
wpwebpnative_transparent |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP WebPNative
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 14.77 ▲0.02 | 1.93 ▲0.18 | 41.09 ▼4.50 |
Dashboard /wp-admin | 2,209 ▲24 | 5.81 ▼0.07 | 107.07 ▼8.76 | 38.79 ▼4.55 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.03 ▼0.01 | 40.92 ▲4.47 | 33.44 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.08 ▼0.21 | 633.70 ▲32.43 | 52.71 ▲0.66 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.16 ▼0.04 | 95.49 ▼4.31 | 40.20 ▼4.61 |
WP WebPNative /wp-admin/options-general.php?page=wpwebpnative | 818 | 2.03 | 23.49 | 43.47 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- wpwebpnative_transparent
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-webpnative/wp-webpnative.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
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: speed, seo, performance, webp, compressing...
wp-webpnative/wp-webpnative.php Passed 13 tests
"WP WebPNative" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
27 characters long description:
WebP support for Wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected279 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 53 | 12 | 274 |
CSS | 1 | 0 | 0 | 5 |
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.42 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 1 | 6.25% |
▷ Anonymous functions | 15 | 93.75% |
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
No PNG images were found in this plugin