Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.85MB] [CPU: ▼53.85ms] Passed 4 tests
A check of server-side resources used by Big Sea SVG Icons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.05 ▼2.42 |
Dashboard /wp-admin | 2.10 ▼1.25 | 6.07 ▼56.13 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 8.31 ▼43.23 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.52 ▼87.54 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.29 ▼28.51 |
SVG Icons /wp-admin/themes.php?page=bsd-svg-documentation | 2.11 | 5.85 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 501 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Big Sea SVG Icons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.68 ▼0.54 | 1.75 ▼0.39 | 45.24 ▼0.19 |
Dashboard /wp-admin | 2,227 ▲27 | 5.85 ▼0.02 | 108.60 ▲0.79 | 43.38 ▲1.46 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.06 ▲0.06 | 40.99 ▲6.38 | 36.68 ▲5.40 |
Add New Post /wp-admin/post-new.php | 1,545 ▲2 | 23.02 ▼0.21 | 613.71 ▼27.70 | 51.87 ▲0.31 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.22 ▼0.03 | 98.42 ▼2.94 | 43.17 ▲0.12 |
SVG Icons /wp-admin/themes.php?page=bsd-svg-documentation | 1,198 | 2.01 | 22.95 | 35.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the bsd-icons-admin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/themes.php?page=bsd-svg-documentation
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the bsd-icons-admin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bsd-svg-icons/library/templates/documentation.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_stylesheet_directory() in wp-content/plugins/bsd-svg-icons/library/templates/documentation.php:140
- > PHP Warning
Use of undefined constant BSD_SVG_PLUGIN_ROOT - assumed 'BSD_SVG_PLUGIN_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/bsd-svg-icons/library/class.bsd_svg_icons.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/bsd-svg-icons/library/admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bsd-svg-icons/bsd-svg-icons.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: fonts, svg, icon, icomoon
bsd-svg-icons/bsd-svg-icons.php Passed 13 tests
The main PHP script in "Big Sea SVG Icons" version 1.0.2 is automatically included on every request by WordPress
127 characters long description:
Built by designers, for designers. Add SVG images with ease, via a single function or shortcode. Comes with icons from icomoon!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,200 lines of code in 499 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 491 | 0 | 491 | 2,692 |
PHP | 6 | 154 | 167 | 482 |
CSS | 2 | 4 | 0 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 23.53% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin