84% emojicom

Code Review | Emojicom - Quickly collect feedback using emojis

WordPress plugin Emojicom - Quickly collect feedback using emojis scored 84% from 54 tests.

About plugin

  • Plugin page: emojicom
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Aug 16, 2018
  • Latest release: Apr 15, 2020
  • Number of updates: 5
  • Update frequency: every 121.8 days
  • Top authors: emojicom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,006 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Emojicom - Quickly collect feedback using emojis
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.04 ▼3.27
Dashboard /wp-admin3.32 ▲0.0245.55 ▼2.75
Posts /wp-admin/edit.php3.37 ▲0.0246.07 ▼0.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.92 ▲1.89
Media Library /wp-admin/upload.php3.25 ▲0.0236.57 ▲3.11
Emojicom /wp-admin/options-general.php?page=emojicom3.2131.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Emojicom - Quickly collect feedback using emojis
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.27 ▼1.081.73 ▼0.1941.16 ▼4.62
Dashboard /wp-admin2,213 ▲254.84 ▼0.24109.58 ▼0.6741.73 ▲0.99
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0039.45 ▼0.3135.24 ▼2.03
Add New Post /wp-admin/post-new.php1,537 ▲2323.01 ▼0.41622.39 ▼28.2563.89 ▲11.83
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.18105.46 ▲9.1045.00 ▲2.74
Emojicom /wp-admin/options-general.php?page=emojicom8442.0625.5344.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emojicom/oembed.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/emojicom/shortcodes.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emojicom/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

emojicom/emojicom.php Passed 13 tests

The main PHP file in "Emojicom - Quickly collect feedback using emojis" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Easily embed emojicom widgets on your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin241 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5478241

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin