Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼2.11ms] Passed 4 tests
This is a short check of server-side resources used by Go WebP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.17 ▲0.71 | 39.31 ▼1.22 |
Dashboard /wp-admin | 4.00 ▲0.70 | 51.31 ▼0.09 |
Posts /wp-admin/edit.php | 4.05 ▲0.70 | 50.49 ▲0.61 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 86.75 ▼7.72 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 38.97 ▲5.37 |
Settings /wp-admin/admin.php?page=gowebp/gowebp_option2.php | 4.08 | 37.80 |
Server storage [IO: ▲6.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 222 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_gowebp |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Go WebP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.28 ▼1.01 | 1.64 ▼0.57 | 38.35 ▼12.85 |
Dashboard /wp-admin | 2,238 ▲53 | 5.00 ▼0.90 | 106.39 ▲4.25 | 76.61 ▲32.98 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.08 ▲0.07 | 35.83 ▼6.47 | 34.12 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,694 ▲152 | 22.57 ▲4.24 | 751.00 ▲122.22 | 49.39 ▼0.05 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.30 ▲0.05 | 99.83 ▲3.43 | 75.01 ▲33.70 |
Settings /wp-admin/admin.php?page=gowebp/gowebp_option2.php | 1,804 | 2.50 | 57.06 | 125.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/gowebp/uninstall.php+6
The use statement with non-compound name 'DirectoryIterator' has no effect
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gowebp/ir_footer.php
- > /wp-content/plugins/gowebp/vendor/lsolesen/pel/examples/dirsort.php
- > /wp-content/plugins/gowebp/vendor/lsolesen/pel/examples/edit-description.php
- > /wp-content/plugins/gowebp/vendor/lsolesen/pel/make-image-test.php
- > /wp-content/plugins/gowebp/vendor/lsolesen/pel/examples/dump-image.php
- 88× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/gowebp/vendor/lsolesen/pel/test/imagetests/CanonPowershotS60Test.php:30
- > PHP Warning
array_shift() expects parameter 1 to be array, null given in wp-content/plugins/gowebp/vendor/lsolesen/pel/examples/dump-image.php on line 36
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelEntryException' not found in wp-content/plugins/gowebp/vendor/lsolesen/pel/src/PelWrongComponentCountException.php:43
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelEntryNumber' not found in wp-content/plugins/gowebp/vendor/lsolesen/pel/src/PelEntrySShort.php:47
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/gowebp/vendor/lsolesen/pel/test/BrokenImagesTest.php:30
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelEntryNumber' not found in wp-content/plugins/gowebp/vendor/lsolesen/pel/src/PelEntrySLong.php:47
- > PHP Fatal error
Uncaught Error: Class 'Pel\\Test\umberTestCase' not found in wp-content/plugins/gowebp/vendor/lsolesen/pel/test/NumberRationalTest.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/gowebp/vendor/lsolesen/pel/test/ConvertTest.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/gowebp/vendor/lsolesen/pel/test/GH16Test.php:35
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelEntry' not found in wp-content/plugins/gowebp/vendor/lsolesen/pel/src/PelEntryAscii.php:59
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
gowebp/gowebp.php 92% from 13 tests
The main PHP file in "Go WebP" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin32,854 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 3,840 | 9,959 | 18,544 |
CSS | 9 | 932 | 43 | 8,940 |
PO File | 7 | 2,661 | 5,093 | 4,433 |
Markdown | 5 | 288 | 0 | 590 |
Bourne Shell | 4 | 63 | 116 | 150 |
JSON | 2 | 0 | 0 | 112 |
XML | 3 | 4 | 3 | 40 |
YAML | 2 | 5 | 0 | 31 |
JavaScript | 4 | 1 | 6 | 11 |
INI | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 353.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 98 | |
▷ Abstract classes | 4 | 4.08% |
▷ Concrete classes | 94 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 547 | |
▷ Static methods | 73 | 13.35% |
▷ Public methods | 529 | 96.71% |
▷ Protected methods | 5 | 0.91% |
▷ Private methods | 13 | 2.38% |
Functions | 18 | |
▷ Named functions | 15 | 83.33% |
▷ Anonymous functions | 3 | 16.67% |
Constants | 375 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 375 | 100.00% |
▷ Public constants | 370 | 98.67% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.50MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/web-desk-char.png | 38.72KB | 15.75KB | ▼ 59.33% |
lib/img/mobile_preview.png | 29.78KB | 10.55KB | ▼ 64.58% |
lib/img/oldpreview.png | 24.92KB | 10.20KB | ▼ 59.05% |
lib/img/previewOLD.png | 24.92KB | 10.20KB | ▼ 59.05% |
lib/img/preview.png | 29.84KB | 10.61KB | ▼ 64.43% |