Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼146.56ms] Passed 4 tests
Analyzing server-side resources used by WP Term Icons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 42.45 ▲23.35 |
Dashboard /wp-admin | 3.13 ▲0.07 | 45.09 ▼2.04 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 43.07 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 87.08 ▼584.38 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 32.45 ▲3.59 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wpdb_term_icon_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Term Icons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.21 ▲0.22 | 12.45 ▲1.58 | 48.12 ▼4.67 |
Dashboard /wp-admin | 2,967 ▲36 | 5.89 ▼0.02 | 139.43 ▼8.53 | 104.58 ▼4.82 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.01 | 69.55 ▼1.05 | 84.08 ▼5.15 |
Add New Post /wp-admin/post-new.php | 1,672 ▼1,982 | 18.85 ▼0.08 | 411.52 ▼79.93 | 106.30 ▼0.80 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▼0.05 | 154.59 ▼0.82 | 118.09 ▲6.52 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- wpdb_term_icon_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: taxonomy, meta, term, icons, icon...
wp-term-icons/wp-term-icons.php Passed 13 tests
"WP Term Icons" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Pretty icons for categories, tags, and other taxonomy terms
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
No dangerous file extensions were detected594 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 20 | 21 | 323 |
PHP | 1 | 75 | 202 | 183 |
CSS | 1 | 1 | 0 | 55 |
Markdown | 1 | 19 | 0 | 33 |
PHP code Passed 2 tests
An overview 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.27 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 17 | |
▷ Static methods | 3 | 17.65% |
▷ Public methods | 14 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 17.65% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin