Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▲4.03ms] Passed 4 tests
A check of server-side resources used by Image Optimizer, Resizer and CDN - Sirv
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 36.85 ▲0.62 |
Dashboard /wp-admin | 3.44 ▲0.14 | 50.88 ▲1.29 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.78 ▲6.64 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 99.04 ▲11.02 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 41.76 ▲7.58 |
Media Library /wp-admin/admin.php?page=sirv/plugdata/media_library.php | 3.37 | 37.54 |
Feedback /wp-admin/admin.php?page=sirv/plugdata/submenu_pages/feedback.php | 3.35 | 36.48 |
Help /wp-admin/admin.php?page=sirv/plugdata/submenu_pages/help.php | 3.39 | 37.77 |
Settings /wp-admin/admin.php?page=sirv/plugdata/options.php | 3.40 | 39.87 |
Account /wp-admin/admin.php?page=sirv/plugdata/submenu_pages/account.php | 3.40 | 37.42 |
Shortcodes /wp-admin/admin.php?page=sirv/plugdata/shortcodes-view.php | 3.37 | 36.44 |
Server storage [IO: ▲1.53MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 105 new files
Database: 3 new tables, 64 new options
New tables |
---|
wp_sirv_images |
wp_sirv_shortcodes |
wp_sirv_fetching_errors |
New WordPress options |
---|
widget_recent-comments |
SIRV_CUSTOM_SMV_SH_OPTIONS |
SIRV_WOO_PIN |
SIRV_RESPONSIVE_PLACEHOLDER |
can_compress_scripts |
SIRV_WOO_MAX_HEIGHT |
SIRV_PARSE_STATIC_IMAGES |
SIRV_FOLDER |
SIRV_EXCLUDE_FILES |
SIRV_WOO_TTL |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Image Optimizer, Resizer and CDN - Sirv
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲123 | 14.25 ▼0.10 | 2.03 ▲0.49 | 43.25 ▼2.45 |
Dashboard /wp-admin | 2,262 ▲82 | 5.57 ▼0.05 | 86.73 ▲0.45 | 77.62 ▲33.40 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 1.99 ▲0.02 | 38.32 ▲4.44 | 36.51 ▲0.66 |
Add New Post /wp-admin/post-new.php | 10,924 ▲9,398 | 24.07 ▲0.62 | 1,032.31 ▲413.30 | 36.60 ▼22.32 |
Media Library /wp-admin/upload.php | 1,461 ▲64 | 4.23 ▼0.17 | 102.80 ▲4.70 | 71.72 ▲31.06 |
Media Library /wp-admin/admin.php?page=sirv/plugdata/media_library.php | 854 | 1.99 | 24.02 | 28.05 |
Feedback /wp-admin/admin.php?page=sirv/plugdata/submenu_pages/feedback.php | 940 | 2.01 | 28.91 | 26.04 |
Help /wp-admin/admin.php?page=sirv/plugdata/submenu_pages/help.php | 1,520 | 1.93 | 31.14 | 45.89 |
Settings /wp-admin/admin.php?page=sirv/plugdata/options.php | 1,048 | 1.87 | 27.60 | 29.28 |
Account /wp-admin/admin.php?page=sirv/plugdata/submenu_pages/account.php | 1,029 | 1.87 | 27.08 | 26.57 |
Shortcodes /wp-admin/admin.php?page=sirv/plugdata/shortcodes-view.php | 960 | 2.03 | 46.37 | 30.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_sirv_fetching_errors
- wp_sirv_shortcodes
- wp_sirv_images
- The uninstall procedure has failed, leaving 64 options in the database
- SIRV_WOO_CAT_SWAP_METHOD
- theysaidso_admin_options
- SIRV_HTTP_AUTH_CHECK
- SIRV_WOO_CAT_SHOWING_METHOD
- SIRV_WOO_CAT_ITEMS
- SIRV_WOO_PRODUCTS_MOBILE_PROFILE
- SIRV_ENABLE_CDN
- SIRV_CROP_SIZES
- SIRV_HTTP_AUTH_PASS
- SIRV_JS_MODULES
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sirv/plugdata/options.php
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
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
- 32× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/sirv/plugdata/includes/classes/query-string.class.php
- > /wp-content/plugins/sirv/plugdata/template.php
- > /wp-content/plugins/sirv/sirv.php
- > /wp-content/plugins/sirv/plugdata/submenu_pages/account.php
- > /wp-content/plugins/sirv/plugdata/submenu_pages/woocommerce.php
- > /wp-content/plugins/sirv/plugdata/includes/classes/woo.class.php
- > /wp-content/plugins/sirv/plugdata/includes/classes/sirv.api.class.php
- > /wp-content/plugins/sirv/plugdata/htmlBuilders/elementor/Plugin.php
- > /wp-content/plugins/sirv/plugdata/shortcodes.php
- > /wp-content/plugins/sirv/plugdata/includes/classes/logger.class.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sirv/plugdata/submenu_pages/settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function sirv_getStorageInfo() in wp-content/plugins/sirv/plugdata/submenu_pages/sync.php:2
- > PHP Fatal error
Uncaught Error: Class 'Woo' not found in wp-content/plugins/sirv/plugdata/woo_templates/woo-category-template.php:4
- > PHP Notice
Undefined variable: storageInfo in wp-content/plugins/sirv/plugdata/submenu_pages/woocommerce.php on line 3
- > PHP Warning
Use of undefined constant SIRV_PLUGIN_RELATIVE_SUBDIR_PATH - assumed 'SIRV_PLUGIN_RELATIVE_SUBDIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sirv/plugdata/submenu_pages/help.php on line 90
- > PHP Fatal error
Uncaught Error: Call to undefined function sirv_getAPIClient() in wp-content/plugins/sirv/plugdata/submenu_pages/stats.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: compress, image, optimize, cdn, resize
sirv/sirv.php 92% from 13 tests
The primary PHP file in "Image Optimizer, Resizer and CDN - Sirv" version 7.1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 433 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin24,849 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 3,340 | 618 | 11,809 |
JavaScript | 19 | 1,774 | 476 | 6,911 |
CSS | 12 | 694 | 205 | 3,507 |
HTML | 7 | 295 | 115 | 2,329 |
SVG | 11 | 1 | 5 | 293 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 34.23 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 221.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 336 | |
▷ Static methods | 101 | 30.06% |
▷ Public methods | 155 | 46.13% |
▷ Protected methods | 172 | 51.19% |
▷ Private methods | 9 | 2.68% |
Functions | 283 | |
▷ Named functions | 278 | 98.23% |
▷ Anonymous functions | 5 | 1.77% |
Constants | 18 | |
▷ Global constants | 10 | 55.56% |
▷ Class constants | 8 | 44.44% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.28MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugdata/assets/ico-folder-old.png | 14.14KB | 6.21KB | ▼ 56.12% |
plugdata/assets/wordpress-plugin-instructions-3.png | 50.19KB | 51.62KB | 0.00% |
plugdata/assets/add_media.png | 16.25KB | 6.52KB | ▼ 59.84% |
plugdata/assets/ico-folder.png | 1.44KB | 0.94KB | ▼ 35.03% |
plugdata/assets/pen.png | 1.14KB | 0.51KB | ▼ 55.08% |