94% emoji-keyboard-in-comment-form

Code Review | Emoji Keyboard in Comment Form

WordPress plugin Emoji Keyboard in Comment Form scored 94% from 54 tests.

About plugin

  • Plugin page: emoji-keyboard-in...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.7
  • WordPress version: 5.8.1
  • First release: Jul 9, 2018
  • Latest release: Jul 12, 2018
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: emojipudding (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 501 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼134.85ms] Passed 4 tests

A check of server-side resources used by Emoji Keyboard in Comment Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1434.18 ▲9.29
Dashboard /wp-admin3.07 ▲0.0248.34 ▲1.76
Posts /wp-admin/edit.php3.13 ▲0.0247.74 ▲5.92
Add New Post /wp-admin/post-new.php5.44 ▲0.0192.79 ▼545.68
Media Library /wp-admin/upload.php3.02 ▲0.0232.41 ▼1.40

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Emoji Keyboard in Comment Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.93 ▲0.068.80 ▲0.6446.13 ▼3.30
Dashboard /wp-admin2,967 ▲365.88 ▼0.07136.45 ▼9.25107.60 ▼9.63
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0065.22 ▼3.7489.63 ▼2.06
Add New Post /wp-admin/post-new.php1,672 ▼018.86 ▲0.11365.13 ▲11.18110.08 ▼0.80
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.00149.36 ▼13.83120.24 ▲2.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/emoji-keyboard-in-comment-form/emojikeyboard_content.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/emoji-keyboard-in-comment-form/emojikeybord.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'emoji_keyboard_in_wp_comments_form_interface' not found in wp-content/plugins/emoji-keyboard-in-comment-form/includes/frontend-interface.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: emojis, emoji keyboard

emoji-keyboard-in-comment-form/emojikeybord.php 85% from 13 tests

"Emoji Keyboard in Comment Form" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("emoji-keyboard-in-comment-form.php" instead of "emojikeybord.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,089 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File227490

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.12
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants10100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/keyboard_icon.png15.56KB6.60KB▼ 57.58%