Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/smartifw/smart_icons_for_wordpress.php+55
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.03MB] [CPU: ▼45.99ms] Passed 4 tests
A check of server-side resources used by Smart Icons For WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▼0.52 | 14.30 ▼23.76 |
Dashboard /wp-admin | 2.99 ▼0.35 | 17.08 ▼41.78 |
Posts /wp-admin/edit.php | 2.99 ▼0.36 | 17.27 ▼32.93 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 16.98 ▼85.48 |
Media Library /wp-admin/upload.php | 2.99 ▼0.23 | 18.16 ▼13.77 |
Add-ons /wp-admin/admin.php?page=smart-ifw-pro-addons-page | 2.99 | 15.46 |
SmartIcons /wp-admin/admin.php?page=smart-icons-for-wordpress | 2.99 | 16.00 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
_smart_ifw_options |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Icons For WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 14.78 ▲0.43 | 1.83 ▲0.05 | 42.49 ▲1.03 |
Dashboard /wp-admin | 2,235 ▲47 | 4.89 ▼0.03 | 97.96 ▼13.11 | 76.16 ▲35.33 |
Posts /wp-admin/edit.php | 2,121 ▲50 | 1.98 ▼0.03 | 38.08 ▼0.64 | 33.76 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,727 ▲194 | 18.27 ▼4.81 | 722.80 ▲121.90 | 37.38 ▼17.61 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.23 ▲0.09 | 94.70 ▼11.17 | 72.69 ▲29.80 |
Add-ons /wp-admin/admin.php?page=smart-ifw-pro-addons-page | 996 | 1.99 | 32.50 | 27.97 |
SmartIcons /wp-admin/admin.php?page=smart-icons-for-wordpress | 1,065 | 1.91 | 28.68 | 48.88 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- _smart_ifw_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=smart-icons-for-wordpress
- > Notice in wp-content/plugins/smartifw/includes/scripts.php+23
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=smart-icons-for-wordpress
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/smartifw/smart_icons_for_wordpress.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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 to be fixed:
- Tags: Too many tags (78 tag instead of maximum 10); only the first 5 tags are used in your directory listing
smartifw/smart_icons_for_wordpress.php 85% from 13 tests
The principal PHP file in "Smart Icons For WordPress" v. 1.0.4 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smartifw.php" instead of "smart_icons_for_wordpress.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,705 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 109 | 67 | 1,106 |
SVG | 1 | 0 | 0 | 565 |
CSS | 4 | 4 | 4 | 23 |
JavaScript | 3 | 1 | 4 | 7 |
Markdown | 2 | 2 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
images/menu-icon.png | 0.48KB | 0.39KB | ▼ 19.88% |