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
Install script ran successfully
Server metrics [RAM: ▲0.96MB] [CPU: ▼4.14ms] Passed 4 tests
An overview of server-side resources used by Compress, Resize & Lazy Load Images - WPvivid Image Optimization
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 43.24 ▲1.94 |
Dashboard /wp-admin | 4.41 ▲1.11 | 59.89 ▲7.10 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 52.80 ▼0.30 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.11 | 86.85 ▼20.80 |
Media Library /wp-admin/upload.php | 4.33 ▲1.11 | 42.36 ▲2.59 |
API License /wp-admin/admin.php?page=wpvivid-imgoptim-license | 4.24 | 40.83 |
CDN Integration /wp-admin/admin.php?page=wpvivid-cdn | 4.24 | 35.39 |
Lazyload /wp-admin/admin.php?page=wpvivid-lazyload | 4.24 | 36.26 |
Settings /wp-admin/admin.php?page=wpvivid-imgoptim-setting | 4.32 | 43.97 |
Image Optimization /wp-admin/admin.php?page=WPvivid_ImgOptim | 4.37 | 44.58 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- You have illegally modified 2 files (0.01KB) outside of "wp-content/plugins/wpvivid-imgoptim/" and "wp-content/uploads/"
- (new file) wp-content/wpvivid_image_optimization/log/index.html
- (new file) wp-content/wpvivid_image_optimization/log/.htaccess
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
wpvivid_imgoptim_overview |
wpvivid_get_get_overview |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Compress, Resize & Lazy Load Images - WPvivid Image Optimization
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲42 | 14.28 ▼0.33 | 1.78 ▼0.35 | 42.75 ▼1.75 |
Dashboard /wp-admin | 2,234 ▲63 | 5.64 ▲0.11 | 85.99 ▼5.33 | 40.24 ▼0.05 |
Posts /wp-admin/edit.php | 2,139 ▲36 | 1.97 ▼0.05 | 36.64 ▼6.12 | 34.50 ▼5.00 |
Add New Post /wp-admin/post-new.php | 1,557 ▲19 | 23.15 ▼0.06 | 614.52 ▼63.74 | 53.05 ▲2.29 |
Media Library /wp-admin/upload.php | 1,448 ▲54 | 4.21 ▲0.05 | 104.17 ▲4.46 | 45.16 ▼0.51 |
API License /wp-admin/admin.php?page=wpvivid-imgoptim-license | 1,134 | 2.00 | 26.63 | 42.58 |
CDN Integration /wp-admin/admin.php?page=wpvivid-cdn | 1,190 | 1.95 | 28.11 | 35.04 |
Lazyload /wp-admin/admin.php?page=wpvivid-lazyload | 1,268 | 2.22 | 29.75 | 46.84 |
Settings /wp-admin/admin.php?page=wpvivid-imgoptim-setting | 1,372 | 2.11 | 29.38 | 47.49 |
Image Optimization /wp-admin/admin.php?page=WPvivid_ImgOptim | 1,648 | 2.23 | 35.69 | 48.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- wpvivid_get_get_overview
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #2 (Dashboard), #3 (Images optimization Settings)
wpvivid-imgoptim/wpvivid-imgoptim.php 92% from 13 tests
The main file in "Compress, Resize & Lazy Load Images - WPvivid Image Optimization" v. 0.9.20 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin20,683 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 2,750 | 6,525 | 18,486 |
CSS | 3 | 142 | 50 | 1,148 |
JavaScript | 6 | 117 | 15 | 1,049 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 80.96 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 417.00 |
Average method complexity | 5.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 84.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 490 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 478 | 97.55% |
▷ Protected methods | 7 | 1.43% |
▷ Private methods | 5 | 1.02% |
Functions | 8 | |
▷ Named functions | 4 | 50.00% |
▷ Anonymous functions | 4 | 50.00% |
Constants | 125 | |
▷ Global constants | 125 | 100.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
There are no PNG files in this plugin