Benchmarks
Plugin footprint 83% 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.06MB] [CPU: ▼6.05ms] Passed 4 tests
Server-side resources used by Dynamic SVG Icons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.31 ▲0.17 |
Dashboard /wp-admin | 3.37 ▲0.03 | 46.54 ▼15.31 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.63 ▲2.56 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 91.76 ▼5.97 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.22 ▼3.09 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 809 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Dynamic SVG Icons: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲85 | 13.45 ▼1.17 | 8.08 ▲6.35 | 37.45 ▼4.88 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.02 | 90.24 ▲5.03 | 39.77 ▼3.83 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.08 ▲0.04 | 37.48 ▲1.21 | 35.38 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.36 ▲0.21 | 604.87 ▼99.74 | 51.36 ▼8.99 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▲0.04 | 94.22 ▼15.66 | 39.26 ▼12.25 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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)
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
The following issues need your attention
- 788× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/battery-three-quarters.php
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/window-maximize.php
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/tag.php
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/building-o.php
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/magnet.php
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/cube.php
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/caret-left.php
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/bar-chart.php
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/hourglass-3.php
- > /wp-content/plugins/dynamic-svg-icons/templates/icons/music.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'DsvgIcons\\Framework\\View\\ViewBase' not found in wp-content/plugins/dynamic-svg-icons/app/View/View.php:13
- > PHP Notice
Undefined variable: id in wp-content/plugins/dynamic-svg-icons/templates/icon-wrapper.php on line 1
- > PHP Fatal error
Uncaught Error: Interface 'DsvgIcons\\Framework\\Contracts\\Initable' not found in wp-content/plugins/dynamic-svg-icons/app/Components/RenderIconMarkup.php:12
- > PHP Fatal error
Uncaught Error: Class 'DsvgIcons\\Framework\\View\\ViewRenderer' not found in wp-content/plugins/dynamic-svg-icons/framework/View/ViewBase.php:18
- > PHP Notice
Undefined variable: icon in wp-content/plugins/dynamic-svg-icons/templates/icon-wrapper.php on line 1
- > PHP Notice
Undefined variable: content in wp-content/plugins/dynamic-svg-icons/templates/template-script.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: icons, svg
dynamic-svg-icons/dynamic-svg-icons.php 92% from 13 tests
The primary PHP file in "Dynamic SVG Icons" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 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
No dangerous file extensions were detected2,501 lines of code in 693 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 690 | 230 | 276 | 2,391 |
JavaScript | 2 | 26 | 52 | 106 |
JSON | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 2 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 4 | 9.09% |
▷ Public methods | 27 | 61.36% |
▷ Protected methods | 4 | 9.09% |
▷ Private methods | 13 | 29.55% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 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