Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.42ms] Passed 4 tests
Server-side resources used by Icon Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.15 ▲0.43 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.06 ▼0.85 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 44.90 ▼2.06 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.25 ▼14.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.08 ▼0.67 |
Icon Widget /wp-admin/options-general.php?page=icon_widget | 3.22 | 31.56 |
Server storage [IO: ▲5.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
widget_icon-widget |
Browser metrics Passed 4 tests
A check of browser resources used by Icon Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.22 ▼1.16 | 1.74 ▼0.15 | 44.07 ▲3.28 |
Dashboard /wp-admin | 2,204 ▲13 | 5.77 ▼0.11 | 100.06 ▲2.39 | 37.81 ▼6.42 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.04 | 33.66 ▼2.23 | 33.17 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,516 ▼17 | 17.45 ▼5.73 | 605.74 ▼76.40 | 52.62 ▼4.73 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▲0.07 | 96.86 ▼6.28 | 41.44 ▼3.98 |
Icon Widget /wp-admin/options-general.php?page=icon_widget | 807 | 2.03 | 23.38 | 24.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_icon-widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please take a closer look at the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Settings.php:10
- > PHP Fatal error
Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Shortcode.php:10
- > PHP Fatal error
Uncaught Error: Class 'SeoThemes\\IconWidget\\Container' not found in wp-content/plugins/icon-widget/src/Plugin.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/icon-widget/src/Widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Enqueue.php:10
- > PHP Fatal error
Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Textdomain.php:10
- > PHP Fatal error
Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Hooks.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: widget, fontawesome, icon
icon-widget/icon-widget.php Passed 13 tests
"Icon Widget" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Displays an icon widget with a title and description.
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
Good job! No executable or dangerous file extensions detected21,222 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 8 | 2 | 18 | 17,736 |
PHP | 18 | 144 | 320 | 3,475 |
CSS | 8 | 2 | 48 | 8 |
JavaScript | 2 | 1 | 16 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 1 | 11.11% |
Methods | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
PNG images were not found in this plugin