83% icon-list-block

Code Review | Icon List Block - Use icons instead of bullets in the list.

WordPress plugin Icon List Block - Use icons instead of bullets in the list. scored83%from 54 tests.

About plugin

  • Plugin page: icon-list-block
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 22, 2022
  • Latest release: Oct 16, 2023
  • Number of updates: 22
  • Update frequency: every 26.1 days
  • Top authors: charlescormier (86.36%)abuhayat (18.18%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /12,977 total downloads

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.04MB] [CPU: ▼2.05ms] Passed 4 tests

This is a short check of server-side resources used by Icon List Block - Use icons instead of bullets in the list.
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.80 ▲1.42
Dashboard /wp-admin3.35 ▲0.0446.63 ▲2.01
Posts /wp-admin/edit.php3.40 ▲0.0445.77 ▲0.79
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.01 ▼12.40
Media Library /wp-admin/upload.php3.27 ▲0.0436.53 ▲2.52

Server storage [IO: ▲1.57MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Icon List Block - Use icons instead of bullets in the list.
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.091.80 ▲0.3046.27 ▲6.69
Dashboard /wp-admin2,198 ▲245.62 ▲0.0689.90 ▲4.8642.86 ▼2.55
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0334.77 ▼4.2233.19 ▼4.73
Add New Post /wp-admin/post-new.php6,200 ▲4,67419.19 ▼4.52959.02 ▲280.3857.59 ▲7.19
Media Library /wp-admin/upload.php1,400 ▼34.16 ▼0.2494.62 ▼3.2346.09 ▲0.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ILB_VERSION - assumed 'ILB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/icon-list-block/dist/editor.asset.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icon-list-block/inc/block.php:4

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Requires at least: Version format is invalid
You can take inspiration from this readme.txt

icon-list-block/index.php 85% from 13 tests

The primary PHP file in "Icon List Block - Use icons instead of bullets in the list." version 1.0.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("icon-list-block.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin370 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON200204
PO File15093118
PHP3121241
CSS3175
JavaScript2022

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin