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: ▼2.42ms] Passed 4 tests
Server-side resources used by Icon List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.64 ▼2.74 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.51 ▼1.77 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.11 ▲2.51 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.37 ▼4.80 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.85 ▼0.35 |
Icon List Options /wp-admin/options-general.php?page=iconlist-options | 3.28 | 29.61 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_widget-iconlist-kamn |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
kamn_iconlist_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Icon List: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.51 ▲0.28 | 1.72 ▼0.01 | 44.85 ▼0.50 |
Dashboard /wp-admin | 2,213 ▲25 | 5.84 ▼0.01 | 95.67 ▼6.28 | 36.16 ▼7.96 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▲0.04 | 38.17 ▲1.74 | 35.60 ▲2.49 |
Add New Post /wp-admin/post-new.php | 1,544 ▲9 | 18.45 ▼5.03 | 629.61 ▼41.57 | 56.35 ▼4.38 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.02 | 100.95 ▲6.97 | 41.19 ▼0.91 |
Icon List Options /wp-admin/options-general.php?page=iconlist-options | 1,014 | 2.08 | 25.99 | 27.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- widget_recent-posts
- kamn_iconlist_options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_widget-iconlist-kamn
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/icon-list/lib/admin/page.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/icon-list/lib/widget-iconlist.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icon-list/lib/modules.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/icon-list/lib/utils.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icon-list/lib/init.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/icon-list/icon-list.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icon-list/lib/admin/admin.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
icon-list/icon-list.php 92% from 13 tests
The entry point to "Icon List" version 0.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,832 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 8 | 26 | 2,435 |
PHP | 8 | 200 | 163 | 481 |
JavaScript | 2 | 53 | 40 | 161 |
PO File | 1 | 28 | 30 | 82 |
HTML | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin