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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼336.21ms] Passed 4 tests
Analyzing server-side resources used by WP SVG Icons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 57.87 ▲0.56 |
Dashboard /wp-admin | 3.46 ▲0.05 | 33.62 ▲1.18 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 42.87 ▼67.70 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 101.81 ▼1,278.24 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 25.72 ▲0.55 |
Settings /wp-admin/admin.php?page=wp_svg_icons | 3.31 | 24.37 |
Custom Icon Set /wp-admin/admin.php?page=wp-svg-icons-custom-set | 3.45 | 23.96 |
Upgrade /wp-admin/admin.php?page=wp-svg-icons-upgrade | 3.39 | 24.05 |
Default Icon Set /wp-admin/admin.php?page=wp-svg-icons | 3.66 | 32.44 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wp_svg_icons_activation_date |
Browser metrics Passed 4 tests
WP SVG Icons: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,836 ▲82 | 16.11 ▲0.36 | 6.56 ▲0.67 | 2.45 ▼0.24 |
Dashboard /wp-admin | 2,965 ▲111 | 6.83 ▲0.65 | 117.03 ▼15.76 | 175.63 ▲11.23 |
Posts /wp-admin/edit.php | 2,733 ▲45 | 2.96 ▼0.27 | 68.75 ▲5.14 | 212.12 ▲71.57 |
Add New Post /wp-admin/post-new.php | 1,712 ▲1 | 18.20 ▼3.07 | 414.29 ▼37.91 | 199.34 ▲22.63 |
Media Library /wp-admin/upload.php | 1,766 ▲68 | 5.94 ▲0.48 | 153.82 ▲14.18 | 184.92 ▼75.39 |
Settings /wp-admin/admin.php?page=wp_svg_icons | 1,206 | 2.86 | 114.28 | 138.51 |
Custom Icon Set /wp-admin/admin.php?page=wp-svg-icons-custom-set | 1,270 | 2.89 | 67.87 | 195.11 |
Upgrade /wp-admin/admin.php?page=wp-svg-icons-upgrade | 1,318 | 2.88 | 59.70 | 259.46 |
Default Icon Set /wp-admin/admin.php?page=wp-svg-icons | 11,836 | 2.93 | 68.34 | 184.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/svg-vector-icon-plugin/includes/class-wp-svg-icons-uninstall.php+47
Non-static method WP_SVG_Icons_Uninstall::wp_svg_icons_delete_entire_directory() should not be called statically
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/svg-vector-icon-plugin/admin/partials/wp-svg-icons-views-test.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/svg-vector-icon-plugin/admin/partials/wp-svg-icons-default-icons-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
svg-vector-icon-plugin/wp-svg-icons.php 85% from 13 tests
The primary PHP file in "WP SVG Icons" version 3.2.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("svg-vector-icon-plugin.php" instead of "wp-svg-icons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin6,739 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 706 | 621 | 3,332 |
SVG | 1 | 0 | 0 | 2,286 |
CSS | 11 | 163 | 45 | 909 |
JavaScript | 5 | 60 | 52 | 212 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 4 | 8.70% |
▷ Public methods | 40 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.04% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
13 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/download-icon-small.png | 1.72KB | 0.96KB | ▼ 44.11% |
admin/images/svg-icons-front-end-menu.png | 27.00KB | 27.45KB | 0.00% |
includes/images/zip-icon-small.png | 1.69KB | 1.16KB | ▼ 31.00% |
admin/images/svg-icons-customizer.png | 26.26KB | 27.55KB | 0.00% |
includes/images/trash-icon-small.png | 1.35KB | 0.48KB | ▼ 64.43% |