84% shortcode-emojis

Code Review | Sharon's Shortcode Emojis

WordPress plugin Sharon's Shortcode Emojis scored84%from 54 tests.

About plugin

  • Plugin page: shortcode-emojis
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.6
  • WordPress version: 6.3.1
  • First release: Sep 3, 2016
  • Latest release: Jun 2, 2018
  • Number of updates: 9
  • Update frequency: every 70.9 days
  • Top authors: shpemu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,388 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.92ms] Passed 4 tests

This is a short check of server-side resources used by Sharon's Shortcode Emojis
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0253.18 ▲6.48
Dashboard /wp-admin3.60 ▲0.0459.67 ▲6.08
Posts /wp-admin/edit.php3.70 ▲0.0250.90 ▼4.72
Add New Post /wp-admin/post-new.php6.18 ▲0.0491.56 ▼6.87
Media Library /wp-admin/upload.php3.52 ▲0.0340.29 ▲1.84

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 243 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sharon's Shortcode Emojis
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,117 ▲1,35614.38 ▲0.112.27 ▲0.1842.93 ▲2.41
Dashboard /wp-admin3,488 ▲1,3075.62 ▼0.0595.22 ▼6.3943.22 ▼1.34
Posts /wp-admin/edit.php3,399 ▲1,3022.25 ▲0.2543.87 ▲4.0131.82 ▼4.65
Add New Post /wp-admin/post-new.php2,825 ▲1,28023.45 ▲0.16663.72 ▼43.3452.70 ▲0.11
Media Library /wp-admin/upload.php2,701 ▲1,3014.32 ▲0.10107.40 ▲4.2848.27 ▲1.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/shortcode-emojis/inc/style.css.php
    • > /wp-content/plugins/shortcode-emojis/index.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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: smiley, emoji, emoticon, emojis, smilie...

shortcode-emojis/index.php 85% from 13 tests

The main PHP file in "Sharon's Shortcode Emojis" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Name the main plugin file the same as the plugin slug ("shortcode-emojis.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected287 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS11590160
PHP32012116
JavaScript10011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions7
▷ Named functions7100.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
235 compressed PNG files occupy 1.40MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
emojis/car_anim.png0.88KB0.99KB0.00%
emojis/listening_anim.png6.07KB6.22KB0.00%
emojis/polarbear_anim.png16.88KB17.54KB0.00%
emojis/smile_anim.png2.46KB2.50KB0.00%
emojis/cash_anim.png2.93KB2.97KB0.00%