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.11MB] [CPU: ▼3.09ms] Passed 4 tests
This is a short check of server-side resources used by Enable SVG, WebP & ICO Upload
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.20 ▼3.42 |
Dashboard /wp-admin | 3.42 ▲0.11 | 44.97 ▼3.38 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 48.13 ▼0.78 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 84.83 ▼4.78 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 33.86 ▲2.51 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
ideastocode_module_settings |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
itc_svg_upload_settings |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Enable SVG, WebP & ICO Upload
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲135 | 13.33 ▼1.26 | 1.64 ▲0.02 | 39.74 ▼0.80 |
Dashboard /wp-admin | 2,255 ▲67 | 5.86 ▲1.00 | 105.25 ▲5.86 | 42.64 ▼1.11 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.03 ▼0.10 | 42.84 ▲1.86 | 36.87 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,570 ▲31 | 23.48 ▲0.33 | 583.64 ▼12.26 | 53.28 ▲5.05 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 4.25 ▼0.03 | 96.33 ▼4.06 | 42.03 ▼2.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- ideastocode_module_settings
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- itc_svg_upload_settings
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/enable-svg-webp-ico-upload/admin/partials/_other_plugins.php
- > /wp-content/plugins/enable-svg-webp-ico-upload/admin/partials/_about.php
- > /wp-content/plugins/enable-svg-webp-ico-upload/admin/partials/admin-notice-alert.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/enable-svg-webp-ico-upload/admin/partials/admin-display.php:8
- > PHP Warning
Use of undefined constant ITC_SVG_UPLOAD_PLUGIN_DIR_URL - assumed 'ITC_SVG_UPLOAD_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/enable-svg-webp-ico-upload/admin/partials/_about.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'ITC_SVG_Upload_BaseController' not found in wp-content/plugins/enable-svg-webp-ico-upload/includes/class-itc.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/enable-svg-webp-ico-upload/admin/partials/_settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'ITC_SVG_Upload_BaseController' not found in wp-content/plugins/enable-svg-webp-ico-upload/public/class-public.php:2
- > PHP Warning
Use of undefined constant ITC_SVG_UPLOAD_PLUGIN_DIR_URL - assumed 'ITC_SVG_UPLOAD_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/enable-svg-webp-ico-upload/admin/partials/_other_plugins.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/enable-svg-webp-ico-upload/admin/partials/admin-notice.php:7
- > PHP Warning
Use of undefined constant ITC_SVG_UPLOAD_PLUGIN_DIR_URL - assumed 'ITC_SVG_UPLOAD_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/enable-svg-webp-ico-upload/admin/partials/_other_plugins.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'ITC_SVG_Upload_BaseController' not found in wp-content/plugins/enable-svg-webp-ico-upload/includes/class-deactivator.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/enable-svg-webp-ico-upload/admin/class-admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
7 plugin tags: ico, formats, webp, svg, image...
enable-svg-webp-ico-upload/itc-svg-upload.php 85% from 13 tests
"Enable SVG, WebP & ICO Upload " version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("enable-svg-webp-ico-upload.php" instead of "itc-svg-upload.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected850 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 129 | 46 | 672 |
CSS | 1 | 31 | 3 | 147 |
JavaScript | 1 | 6 | 0 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 89.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
3 PNG files occupy 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/security-header-logo.png | 18.20KB | 1.58KB | ▼ 91.30% |
admin/img/disable-email-notification-logo.png | 30.74KB | 6.96KB | ▼ 77.37% |
admin/img/ideasToCode.png | 27.76KB | 4.21KB | ▼ 84.83% |