Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼133.67ms] Passed 4 tests
This is a short check of server-side resources used by Taxonomy Icons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.18 ▲0.46 | 43.58 ▲15.12 |
Dashboard /wp-admin | 3.46 ▲0.40 | 47.25 ▲6.41 |
Posts /wp-admin/edit.php | 3.51 ▲0.40 | 46.22 ▲5.49 |
Add New Post /wp-admin/post-new.php | 5.76 ▲0.32 | 82.86 ▼558.53 |
Media Library /wp-admin/upload.php | 3.34 ▲0.34 | 35.83 ▲11.97 |
Server storage [IO: ▲0.93MB] [DB: ▲0.03MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Taxonomy Icons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲96 | 16.27 ▲0.69 | 7.09 ▼7.27 | 45.30 ▼4.64 |
Dashboard /wp-admin | 2,982 ▲48 | 6.03 ▲0.10 | 140.28 ▼5.83 | 111.09 ▼5.11 |
Posts /wp-admin/edit.php | 2,747 ▲8 | 2.70 ▼0.00 | 64.73 ▼2.41 | 92.58 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,897 ▲282 | 15.71 ▼5.61 | 354.53 ▲82.86 | 105.85 ▼5.12 |
Media Library /wp-admin/upload.php | 1,818 ▲8 | 5.02 ▼0.03 | 165.91 ▲16.12 | 125.14 ▲5.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/taxonomy-icons/taxonomy-icons.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
taxonomy-icons/taxonomy-icons.php Passed 13 tests
"Taxonomy Icons" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Add custom icons to your taxonom 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
There were no executable files found in this plugin4,623 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 8 | 75 | 2,131 |
JavaScript | 4 | 32 | 17 | 1,040 |
SVG | 1 | 0 | 0 | 565 |
PHP | 3 | 279 | 846 | 563 |
Markdown | 3 | 105 | 0 | 276 |
JSON | 1 | 0 | 0 | 48 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 44 | |
▷ Static methods | 1 | 2.27% |
▷ Public methods | 22 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 50.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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
No PNG images were found in this plugin