84% emoji-shortcode

Code Review | Emoji Shortcode

WordPress plugin Emoji Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: emoji-shortcode
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 8, 2017
  • Latest release: Oct 4, 2023
  • Number of updates: 4
  • Update frequency: every 561.8 days
  • Top authors: kadiwala (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.27ms] Passed 4 tests

Analyzing server-side resources used by Emoji Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.87 ▼5.48
Dashboard /wp-admin3.38 ▲0.0450.69 ▼19.75
Posts /wp-admin/edit.php3.48 ▲0.1250.73 ▲2.85
Add New Post /wp-admin/post-new.php5.97 ▲0.0896.86 ▲5.07
Media Library /wp-admin/upload.php3.30 ▲0.0838.86 ▲1.29

Server storage [IO: ▲1.46MB] [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: 261 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Emoji Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,238 ▲1,47713.97 ▼0.408.11 ▲6.1938.48 ▼8.08
Dashboard /wp-admin3,532 ▲1,3324.91 ▼0.90119.42 ▼1.1240.00 ▼4.20
Posts /wp-admin/edit.php3,414 ▲1,3172.24 ▲0.0946.82 ▲7.5634.40 ▲2.42
Add New Post /wp-admin/post-new.php2,837 ▲1,31123.32 ▲5.71653.35 ▼29.6052.91 ▼1.89
Media Library /wp-admin/upload.php2,710 ▲1,3104.32 ▲0.00106.04 ▲0.5346.57 ▼1.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/emoji-shortcode/admin/partials/emoji-shortcode-admin-display.php
    • > /wp-content/plugins/emoji-shortcode/public/partials/emoji-shortcode-public-display.php
    • > /wp-content/plugins/emoji-shortcode/admin/inc/style.css.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in emoji-shortcode/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === emoji-shortcode === )
The official readme.txt might help

emoji-shortcode/emoji-shortcode.php Passed 13 tests

The main file in "Emoji Shortcode" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
There were no executable files found in this plugin451 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14130530274
CSS31598160
JavaScript345417

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
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
235 compressed PNG files occupy 1.40MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/emojis/tubelight_anim.png1.29KB1.32KB0.00%
admin/emojis/publisher.png0.32KB0.34KB0.00%
admin/emojis/slap_anim.png8.42KB8.65KB0.00%
admin/emojis/brb_anim.png9.62KB10.10KB0.00%
admin/emojis/priidu_anim.png2.82KB2.88KB0.00%