89% emoji-autocomplete-gutenberg

Code Review | Emoji Autocomplete Gutenberg

WordPress plugin Emoji Autocomplete Gutenberg scored89%from 54 tests.

About plugin

  • Plugin page: emoji-autocomplet...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.0
  • WordPress version: 6.3.1
  • First release: Jun 26, 2019
  • Latest release: Mar 19, 2020
  • Number of updates: 7
  • Update frequency: every 38.2 days
  • Top authors: eedee (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /6,437 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Emoji Autocomplete Gutenberg
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.38 ▲3.99
Dashboard /wp-admin3.33 ▲0.0255.47 ▲2.08
Posts /wp-admin/edit.php3.38 ▲0.0351.84 ▼1.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.85 ▼18.08
Media Library /wp-admin/upload.php3.26 ▲0.0339.43 ▲5.55

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Emoji Autocomplete Gutenberg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,095 ▲33425.88 ▲11.2243.84 ▲41.7041.78 ▼4.16
Dashboard /wp-admin2,265 ▲8811.94 ▲6.31119.45 ▲27.9739.68 ▼0.53
Posts /wp-admin/edit.php2,199 ▲9910.77 ▲8.7583.16 ▲40.8135.61 ▼0.20
Add New Post /wp-admin/post-new.php1,512 ▼3223.36 ▲4.99558.00 ▼106.7238.28 ▼25.07
Media Library /wp-admin/upload.php1,557 ▲16011.39 ▲7.20145.21 ▲36.8941.62 ▼2.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: emoji, gutenberg, autocomplete, smiley, editor

emoji-autocomplete-gutenberg/eedee-emoji-autocomplete-gutenberg.php 85% from 13 tests

The principal PHP file in "Emoji Autocomplete Gutenberg" v. 1.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("emoji-autocomplete-gutenberg.php" instead of "eedee-emoji-autocomplete-gutenberg.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
Good job! No executable or dangerous file extensions detected139 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript361642
Sass32039
PHP274327
JSON10019
CSS201212

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin