84% emoji-settings

Code Review | Emoji Settings

WordPress plugin Emoji Settings scored84%from 54 tests.

About plugin

  • Plugin page: emoji-settings
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2015
  • Latest release: Sep 15, 2023
  • Number of updates: 55
  • Update frequency: every 54.4 days
  • Top authors: Cybr (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /21,254 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.44ms] Passed 4 tests

A check of server-side resources used by Emoji Settings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.71 ▼3.87
Dashboard /wp-admin3.31 ▲0.0146.43 ▼4.87
Posts /wp-admin/edit.php3.37 ▲0.0147.40 ▲1.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.82 ▼2.30
Media Library /wp-admin/upload.php3.24 ▲0.0138.81 ▲4.09

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Emoji Settings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.101.61 ▲0.0338.65 ▼0.15
Dashboard /wp-admin2,198 ▲215.65 ▼0.1184.58 ▼4.3035.93 ▼8.59
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0132.33 ▼7.1832.58 ▼3.10
Add New Post /wp-admin/post-new.php1,536 ▲818.18 ▼4.90600.42 ▼19.9083.39 ▲20.86
Media Library /wp-admin/upload.php1,397 ▼04.30 ▲0.1498.32 ▼0.9842.91 ▲2.03

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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/emoji-settings/emojisettings.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% 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
9 plugin tags: prefetch, mail, emoticon, emoji, scrips...

emoji-settings/emojisettings.php 92% from 13 tests

The main PHP script in "Emoji Settings" version 2.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("emoji-settings.php" instead of "emojisettings.php")

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 detected93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12611793

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods112.50%
▷ 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin