Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼7.58ms] Passed 4 tests
This is a short check of server-side resources used by Easy SVG Support
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 34.77 ▼6.55 |
Dashboard /wp-admin | 3.58 ▲0.28 | 46.74 ▼1.15 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.27 ▼2.32 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 85.71 ▼20.30 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 35.87 ▲2.05 |
Server storage [IO: ▲1.25MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 445 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Easy SVG Support: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲30 | 14.27 ▲0.08 | 1.73 ▲0.03 | 40.75 ▼2.56 |
Dashboard /wp-admin | 2,200 ▲20 | 5.58 ▲0.00 | 84.76 ▼4.99 | 39.06 ▼4.43 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 2.02 ▲0.07 | 35.24 ▼8.28 | 31.71 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.62 ▲0.57 | 652.78 ▼29.11 | 58.85 ▲7.18 |
Media Library /wp-admin/upload.php | 1,399 ▼4 | 4.19 ▲0.11 | 95.89 ▼3.15 | 40.46 ▼1.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/easy-svg/vendor/enshrined/svg-sanitize/src/svg-scanner.php
- 171× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_ChildDef_Required' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Optional.php:10
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeEmbed.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Hypertext.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/ImportantDecorator.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Background.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIFilter_DisableExternal' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php:3
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Strict.php:3
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Definition' not found in wp-content/plugins/easy-svg/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIDefinition.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: Please describe screenshot #3 in easy-svg/assets to your readme.txt
easy-svg/easy-svg.php Passed 13 tests
Analyzing the main PHP file in "Easy SVG Support" version 3.5
30 characters long description:
Add SVG Support for WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin19,762 lines of code in 291 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 266 | 3,505 | 11,085 | 19,039 |
PO File | 15 | 90 | 90 | 426 |
JSON | 4 | 0 | 0 | 214 |
Markdown | 3 | 55 | 0 | 73 |
CSS | 1 | 3 | 1 | 6 |
JavaScript | 1 | 1 | 1 | 3 |
INI | 1 | 1 | 1 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 232)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 539.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 232.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 251 | |
▷ Abstract classes | 15 | 5.98% |
▷ Concrete classes | 236 | 94.02% |
▷ Final classes | 0 | 0.00% |
Methods | 851 | |
▷ Static methods | 73 | 8.58% |
▷ Public methods | 660 | 77.56% |
▷ Protected methods | 106 | 12.46% |
▷ Private methods | 85 | 9.99% |
Functions | 18 | |
▷ Named functions | 12 | 66.67% |
▷ Anonymous functions | 6 | 33.33% |
Constants | 64 | |
▷ Global constants | 5 | 7.81% |
▷ Class constants | 59 | 92.19% |
▷ Public constants | 59 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin