78% simple-category-icons

Code Review | Simple Category Icons

WordPress plugin Simple Category Icons scored78%from 54 tests.

About plugin

  • Plugin page: simple-category-i...
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Oct 28, 2014
  • Number of updates: 13
  • Update frequency: every 33.5 days
  • Top authors: basszje (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /6,519 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.87 ▼5.21
Dashboard /wp-admin3.40 ▲0.0955.33 ▲6.38
Posts /wp-admin/edit.php3.51 ▲0.1659.46 ▲3.22
Add New Post /wp-admin/post-new.php5.96 ▲0.07102.35 ▲5.14
Media Library /wp-admin/upload.php3.30 ▲0.0741.11 ▲0.02
Simple Category Icons /wp-admin/options-general.php?page=simple-category-icons/simple_category_icons_admin.php3.3040.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲15114.84 ▲0.491.74 ▲0.0041.06 ▲0.17
Dashboard /wp-admin2,346 ▲1666.17 ▲0.56120.03 ▲25.1137.46 ▼2.68
Posts /wp-admin/edit.php2,271 ▲1683.30 ▲1.2847.67 ▲5.2929.20 ▼6.63
Add New Post /wp-admin/post-new.php1,536 ▲1022.98 ▲0.10646.04 ▲4.4236.58 ▼13.99
Media Library /wp-admin/upload.php1,415 ▲154.10 ▼0.1181.96 ▼20.2142.69 ▼6.08
Simple Category Icons /wp-admin/options-general.php?page=simple-category-icons/simple_category_icons_admin.php1,0802.9840.9328.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP314237386
JavaScript121449
CSS1518

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 code0.34
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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