Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.31ms] Passed 4 tests
An overview of server-side resources used by Kin Icon Picker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.97 ▲1.56 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.06 ▲3.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.89 ▼7.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.38 ▼15.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.78 ▼0.11 |
Server storage [IO: ▲0.86MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Kin Icon Picker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.18 ▼0.41 | 1.76 ▲0.05 | 43.42 ▲1.79 |
Dashboard /wp-admin | 2,195 ▲21 | 5.57 ▼0.14 | 86.99 ▲0.61 | 38.41 ▼2.16 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.02 ▼0.01 | 34.27 ▼0.97 | 37.33 ▲3.37 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.21 ▲0.01 | 615.13 ▼50.60 | 46.20 ▼5.74 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.21 ▼0.02 | 100.16 ▲2.33 | 38.71 ▼5.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kin-icon-picker/admin/partials/kin-icon-picker-admin-settings-display.php:2
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: meta, fields, icomoon, acf, icon...
kin-icon-picker/kin-icon-picker.php Passed 13 tests
The primary PHP file in "Kin Icon Picker" version 1.0.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Powerful plugin to add Icons support to a known custom fields plugin
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
No dangerous file extensions were detected18,037 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 12,332 |
JavaScript | 10 | 991 | 514 | 4,938 |
PHP | 12 | 153 | 491 | 502 |
Sass | 6 | 34 | 3 | 194 |
Markdown | 4 | 26 | 0 | 37 |
CSS | 3 | 4 | 4 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 32 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.79% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
6 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/generate-icons.png | 12.32KB | 13.49KB | 0.00% |
assets/images/icons-dropdown.png | 3.94KB | 3.77KB | ▼ 4.41% |
assets/images/create-project.png | 9.26KB | 9.75KB | 0.00% |
assets/images/load-project.png | 3.16KB | 3.38KB | 0.00% |
assets/images/import-icons.png | 3.05KB | 3.26KB | 0.00% |