78% kiticon-icon-block

Code Review | KitIcon WordPress Gutenberg Icon Block.

WordPress plugin KitIcon WordPress Gutenberg Icon Block. scored 78% from 54 tests.

About plugin

  • Plugin page: kiticon-icon-block
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 28, 2020
  • Latest release: Sep 8, 2020
  • Number of updates: 12
  • Update frequency: every 0.9 days
  • Top authors: kitbug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲1.31MB] [CPU: ▲1.64ms] Passed 4 tests

An overview of server-side resources used by KitIcon WordPress Gutenberg Icon Block.
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.88 ▲1.4152.16 ▲3.40
Dashboard /wp-admin5.10 ▲1.7969.14 ▲24.34
Posts /wp-admin/edit.php5.13 ▲1.7764.28 ▲12.74
Add New Post /wp-admin/post-new.php6.25 ▲0.3662.45 ▼28.17
Media Library /wp-admin/upload.php4.94 ▲1.7151.90 ▲18.58

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 994 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by KitIcon WordPress Gutenberg Icon Block.
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,061 ▲31518.54 ▲4.151.68 ▼0.2539.60 ▼2.99
Dashboard /wp-admin2,476 ▲2949.34 ▲3.53184.49 ▲76.5341.67 ▼0.50
Posts /wp-admin/edit.php2,392 ▲3036.21 ▲4.1578.39 ▲39.0332.89 ▼2.90
Add New Post /wp-admin/post-new.php6,466 ▲4,92923.80 ▲0.771,035.93 ▲434.7548.46 ▼1.16
Media Library /wp-admin/upload.php1,547 ▲1566.72 ▲2.52108.95 ▲12.7842.95 ▼0.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 output text when accessed directly:
    • > /wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 212× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Widget/Widget.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/Installer.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kiticon-icon-block/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

kiticon-icon-block/kiticon.php 85% from 13 tests

"KitIcon WordPress Gutenberg Icon Block." version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kiticon-icon-block.php" instead of "kiticon.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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected30,720 lines of code in 947 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1725,1898,45012,925
PHP2462,7946,94210,561
Sass4833401,746
CSS93251,1421,665
PO File206107791,652
SVG443001,475
JSON500625
Markdown426071

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.45
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces24
Interfaces5
Traits0
Classes220
▷ Abstract classes125.45%
▷ Concrete classes20894.55%
▷ Final classes10.48%
Methods985
▷ Static methods919.24%
▷ Public methods77778.88%
▷ Protected methods19920.20%
▷ Private methods90.91%
Functions111
▷ Named functions2522.52%
▷ Anonymous functions8677.48%
Constants36
▷ Global constants1027.78%
▷ Class constants2672.22%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png104.95KB37.26KB▼ 64.50%