94% emojise

Code Review | Emojise

WordPress plugin Emojise scored 94% from 54 tests.

About plugin

  • Plugin page: emojise
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 5.8.1
  • First release: Apr 15, 2021
  • Latest release: Jun 16, 2021
  • Number of updates: 7
  • Update frequency: every 9.0 days
  • Top authors: emojise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 166 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼142.96ms] Passed 4 tests

This is a short check of server-side resources used by Emojise
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0135.59 ▲1.25
Dashboard /wp-admin3.08 ▲0.0248.59 ▲1.04
Posts /wp-admin/edit.php3.13 ▲0.0140.86 ▼13.76
Add New Post /wp-admin/post-new.php5.44 ▼0.0093.13 ▼560.38
Media Library /wp-admin/upload.php3.02 ▲0.0234.79 ▲6.49
Emojise /wp-admin/options-general.php?page=emojise_widget2.9929.62

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Emojise
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲8116.03 ▲0.4010.57 ▲0.1749.00 ▼1.12
Dashboard /wp-admin2,972 ▲386.12 ▲0.20137.83 ▼27.56113.58 ▼4.32
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0162.44 ▼0.7291.93 ▼3.48
Add New Post /wp-admin/post-new.php1,675 ▼818.73 ▲0.15372.94 ▼10.38124.64 ▲12.43
Media Library /wp-admin/upload.php1,815 ▲85.02 ▼0.01146.46 ▼9.57119.06 ▼0.54
Emojise /wp-admin/options-general.php?page=emojise_widget1,0952.0548.6581.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emojise/index.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

emojise/index.php 92% from 13 tests

The primary PHP file in "Emojise" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("emojise.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
There were no executable files found in this plugin105 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11525105

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
emojise-logo.png14.21KB5.17KB▼ 63.60%