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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.99ms] Passed 4 tests
Analyzing server-side resources used by Icon Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.29 ▼3.60 |
Dashboard /wp-admin | 3.38 ▲0.07 | 49.41 ▼6.22 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.48 ▲0.24 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 99.62 ▲3.26 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.47 ▼2.37 |
Icon Widget /wp-admin/options-general.php?page=icon_widget | 3.27 | 31.88 |
Server storage [IO: ▲3.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_icon-widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
icon_widget_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Icon Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.27 ▲0.12 | 1.91 ▲0.12 | 44.51 ▼0.07 |
Dashboard /wp-admin | 2,199 ▲22 | 5.59 ▼0.03 | 88.86 ▼10.71 | 40.03 ▼3.02 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.05 | 38.16 ▼0.17 | 35.30 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.04 ▲4.99 | 598.31 ▼90.62 | 62.25 ▼5.24 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.20 ▼0.03 | 97.76 ▼7.35 | 42.82 ▼9.10 |
Icon Widget /wp-admin/options-general.php?page=icon_widget | 839 | 1.99 | 25.51 | 32.11 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_icon-widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/icon-widget-with-links/views/admin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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
3 plugin tags: widget, icon, fontawesome
icon-widget-with-links/icon-widget.php 85% from 13 tests
The principal PHP file in "Icon Widget" v. 1.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("icon-widget-with-links.php" instead of "icon-widget.php")
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
Success! There were no dangerous files found in this plugin11,436 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 2 | 6 | 8,845 |
PHP | 9 | 171 | 228 | 2,543 |
Markdown | 1 | 6 | 0 | 21 |
PO File | 1 | 0 | 0 | 17 |
CSS | 7 | 2 | 44 | 7 |
JavaScript | 2 | 1 | 16 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin