Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.79ms] Passed 4 tests
Analyzing server-side resources used by Simple Category Icons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.87 ▼5.21 |
Dashboard /wp-admin | 3.40 ▲0.09 | 55.33 ▲6.38 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 59.46 ▲3.22 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 102.35 ▲5.14 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 41.11 ▲0.02 |
Simple Category Icons /wp-admin/options-general.php?page=simple-category-icons/simple_category_icons_admin.php | 3.30 | 40.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Category Icons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲151 | 14.84 ▲0.49 | 1.74 ▲0.00 | 41.06 ▲0.17 |
Dashboard /wp-admin | 2,346 ▲166 | 6.17 ▲0.56 | 120.03 ▲25.11 | 37.46 ▼2.68 |
Posts /wp-admin/edit.php | 2,271 ▲168 | 3.30 ▲1.28 | 47.67 ▲5.29 | 29.20 ▼6.63 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.98 ▲0.10 | 646.04 ▲4.42 | 36.58 ▼13.99 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.10 ▼0.11 | 81.96 ▼20.21 | 42.69 ▼6.08 |
Simple Category Icons /wp-admin/options-general.php?page=simple-category-icons/simple_category_icons_admin.php | 1,080 | 2.98 | 40.93 | 28.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=simple-category-icons/simple_category_icons_admin.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=simple-category-icons/simple_category_icons_admin.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-category-icons/simple_category_icons.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/simple-category-icons/simple_category_icons_admin.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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: icon, categories, category, icons
simple-category-icons/simple_category_icons.php 92% from 13 tests
This is the main PHP file of "Simple Category Icons" version 1.12, 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-category-icons.php" instead of "simple_category_icons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin443 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 142 | 37 | 386 |
JavaScript | 1 | 21 | 4 | 49 |
CSS | 1 | 5 | 1 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.80 |
▷ 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 | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
There are no PNG files in this plugin