67% jvm-rich-text-icons

Code Review | JVM Gutenberg Rich Text Icons

WordPress plugin JVM Gutenberg Rich Text Icons scored67%from 54 tests.

About plugin

  • Plugin page: jvm-rich-text-icons
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2021
  • Latest release: Nov 22, 2023
  • Number of updates: 41
  • Update frequency: every 23.9 days
  • Top authors: jorisvanmontfort (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /13,301 total downloads

Benchmarks

Plugin footprint 65% 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.09MB] [CPU: ▼4.67ms] Passed 4 tests

Analyzing server-side resources used by JVM Gutenberg Rich Text Icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.74 ▼6.74
Dashboard /wp-admin3.39 ▲0.0947.20 ▼1.56
Posts /wp-admin/edit.php3.51 ▲0.1544.95 ▼2.79
Add New Post /wp-admin/post-new.php6.01 ▲0.1385.63 ▼7.57
Media Library /wp-admin/upload.php3.32 ▲0.0931.89 ▼0.61
JVM rich text icons /wp-admin/options-general.php?page=jvm-rich-text-icons3.3231.98

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

JVM Gutenberg Rich Text Icons: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3814.37 ▼0.001.65 ▼0.1636.74 ▼5.97
Dashboard /wp-admin2,198 ▲245.62 ▼0.0391.74 ▼5.9037.44 ▼2.98
Posts /wp-admin/edit.php2,106 ▲62.00 ▼0.0235.36 ▼5.0830.68 ▼7.24
Add New Post /wp-admin/post-new.php6,200 ▲4,67419.11 ▼4.08927.15 ▲320.2562.71 ▲14.21
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0695.79 ▼9.0141.99 ▼2.85
JVM rich text icons /wp-admin/options-general.php?page=jvm-rich-text-icons1,0212.3748.5733.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/jvm-rich-text-icons/uninstall.php+17
    rmdir(wp-content/uploads/jvm-rich-text-icons/): Directory not empty
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/jvm-rich-text-icons/views/uploader.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'JVM_Richtext_icons' not found in wp-content/plugins/jvm-rich-text-icons/views/icon-list.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'JVM_Richtext_icons' not found in wp-content/plugins/jvm-rich-text-icons/views/dynamic_css.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jvm-rich-text-icons/views/settings.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=jvm-rich-text-icons
    • > Network (severe)
    https://www.paypalobjects.com/en_NL/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: Please take inspiration from this readme.txt

jvm-rich-text-icons/plugin.php 69% from 13 tests

The main PHP script in "JVM Gutenberg Rich Text Icons" version 1.2.7 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("jvm-rich-text-icons.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,359 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JSON400802
PHP10180273718
CSS43117437
JavaScript66961402

PHP code Passed 2 tests

Analyzing 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.37
Average class complexity18.75
▷ Minimum class complexity9.00
▷ Maximum class complexity30.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods34
▷ Static methods926.47%
▷ Public methods3294.12%
▷ Protected methods00.00%
▷ Private methods25.88%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin