Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/templatic-categoryicons/templatic_category_icons.php+53
Undefined index: taxonomy
Server metrics [RAM: ▼1.97MB] [CPU: ▼59.18ms] Passed 4 tests
Analyzing server-side resources used by Easy Category Icons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.83 ▼37.82 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.03 ▼59.67 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.91 ▼44.37 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.89 ▼94.85 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.52 ▼27.67 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Category Icons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,027 ▲281 | 15.12 ▲0.75 | 4.75 ▲2.65 | 42.39 ▲2.04 |
Dashboard /wp-admin | 2,353 ▲162 | 6.64 ▲0.83 | 132.45 ▲22.20 | 50.39 ▲6.81 |
Posts /wp-admin/edit.php | 2,273 ▲184 | 3.52 ▲1.40 | 60.87 ▲26.00 | 38.59 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,523 ▼5 | 23.26 ▼0.06 | 675.63 ▼20.26 | 37.39 ▼15.37 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.26 ▲0.03 | 93.51 ▼11.15 | 45.39 ▼1.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/templatic-categoryicons/templatic_category_icons.php+53
Undefined index: taxonomy
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/templatic-categoryicons/templatic_category_icons.php:12
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #4 (This is for what this might look like in your category page)
templatic-categoryicons/templatic_category_icons.php 92% from 13 tests
This is the main PHP file of "Easy Category Icons" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("templatic-categoryicons.php" instead of "templatic_category_icons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected458 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 83 | 45 | 333 |
JavaScript | 1 | 29 | 4 | 83 |
PO File | 1 | 11 | 11 | 42 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 | 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
4 PNG files occupy 0.43MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 15.63KB | 14.03KB | ▼ 10.23% |
screenshot-4.png | 217.61KB | 217.36KB | 0.12% |
screenshot-3.png | 30.53KB | 29.22KB | ▼ 4.27% |
screenshot-2.png | 171.73KB | 60.04KB | ▼ 65.04% |