90% emoji-toolbar

Code Review | Emoji Toolbar

WordPress plugin Emoji Toolbar scored90%from 54 tests.

About plugin

  • Plugin page: emoji-toolbar
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2021
  • Latest release: Mar 27, 2023
  • Number of updates: 24
  • Update frequency: every 24.9 days
  • Top authors: them.es (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /9,303 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼4.27ms] Passed 4 tests

Server-side resources used by Emoji Toolbar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.74 ▲1.27
Dashboard /wp-admin3.31 ▼0.0348.54 ▼12.40
Posts /wp-admin/edit.php3.36 ▲0.0150.79 ▲2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.50 ▼6.62
Media Library /wp-admin/upload.php3.23 ▲0.0136.21 ▲0.66

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Emoji Toolbar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.031.81 ▲0.1645.30 ▲4.76
Dashboard /wp-admin2,195 ▲205.57 ▼0.1783.84 ▼26.1939.19 ▼1.43
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0239.81 ▲2.2837.13 ▼1.38
Add New Post /wp-admin/post-new.php1,531 ▼919.21 ▼4.10664.18 ▼37.0956.88 ▲7.51
Media Library /wp-admin/upload.php1,397 ▼34.13 ▼0.07101.15 ▼1.3543.09 ▼1.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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
4 plugin tags: editor, emoticon, gutenberg, emoji

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

The principal PHP file in "Emoji Toolbar" v. 1.2.4 is loaded by WordPress automatically on each request
47 characters long description:
A simple Emoji picker for rich-text blocks 😀

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
Success! There were no dangerous files found in this plugin1,198 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
JSON2320641
CSS2647404
PO File1293075
Markdown218051
PHP362926
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were 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%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin