Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.32MB] [CPU: ▲1.48ms] 75% from 4 tests
This is a short check of server-side resources used by Web Icons
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 509.34ms on /wp-admin/admin.php?page=icon-plugin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 42.39 ▲1.51 |
Dashboard /wp-admin | 5.05 ▲1.74 | 51.08 ▼1.82 |
Posts /wp-admin/edit.php | 5.16 ▲1.80 | 53.62 ▲3.73 |
Add New Post /wp-admin/post-new.php | 7.67 ▲1.78 | 102.24 ▲2.50 |
Media Library /wp-admin/upload.php | 4.97 ▲1.74 | 47.72 ▲5.30 |
Help /wp-admin/admin.php?page=icon-welcome | 4.93 | 35.68 |
Dashboard /wp-admin/admin.php?page=icon-plugin | 4.97 | 509.34 |
Server storage [IO: ▲4.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Web Icons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,083 ▲337 | 13.34 ▼0.93 | 4.57 ▲2.56 | 43.04 ▼2.06 |
Dashboard /wp-admin | 2,492 ▲301 | 5.87 ▼0.03 | 106.07 ▼2.16 | 70.50 ▲26.78 |
Posts /wp-admin/edit.php | 2,372 ▲304 | 1.99 ▼0.05 | 38.20 ▲2.36 | 36.58 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,843 ▲301 | 23.42 ▲4.90 | 744.17 ▲99.39 | 36.08 ▼18.25 |
Media Library /wp-admin/upload.php | 1,665 ▲274 | 4.24 ▼0.05 | 98.19 ▼0.45 | 72.50 ▲29.28 |
Help /wp-admin/admin.php?page=icon-welcome | 1,082 | 2.03 | 26.27 | 42.95 |
Dashboard /wp-admin/admin.php?page=icon-plugin | 1,606 | 2.21 | 25.25 | 50.16 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/icon/inc/admin/functions/helpers.php
- > /wp-content/plugins/icon/inc/frontend/icon-script.php
- > /wp-content/plugins/icon/inc/admin/assets/icons/icon-justvector.php
- > /wp-content/plugins/icon/inc/admin/assets/icons/icon-material-icons.php
- > /wp-content/plugins/icon/inc/admin/iconpicker.php
- > /wp-content/plugins/icon/inc/admin/assets/icons/icon-fontello.php
- > /wp-content/plugins/icon/inc/frontend/icon-shortcode.php
- > /wp-content/plugins/icon/inc/admin/assets/icons/icon-openiconic.php
- > /wp-content/plugins/icon/inc/admin/assets/icons/icon-paymentfont.php
- > /wp-content/plugins/icon/inc/admin/functions/icon-functions.php
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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
icon/icon.php Passed 13 tests
"Web Icons" version 1.0.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
121 characters long description:
Icon - Display icon anywhere you like. You can quickly customize any icons to look exactly the way you want them to look.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin33,601 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 12,924 |
PHP | 15 | 283 | 74 | 11,909 |
CSS | 21 | 205 | 106 | 4,660 |
SVG | 7 | 0 | 6 | 3,316 |
PO File | 5 | 120 | 124 | 466 |
JavaScript | 3 | 145 | 33 | 326 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 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
7 PNG files occupy 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/img/how-to-edit.png | 83.28KB | 25.61KB | ▼ 69.24% |
inc/admin/tinymce-plugin/wpicons/images/icon-picker.png | 3.65KB | 1.07KB | ▼ 70.53% |
inc/admin/assets/img/icon-picker.png | 3.65KB | 1.07KB | ▼ 70.53% |
inc/admin/assets/img/pro_only.png | 3.27KB | 0.61KB | ▼ 81.43% |
inc/admin/assets/img/most_popular.png | 9.79KB | 2.77KB | ▼ 71.66% |