83% really-disable-emojis

Code Review | Really Disable Emojis

WordPress plugin Really Disable Emojis scored 83% from 54 tests.

About plugin

  • Plugin page: really-disable-em...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 22, 2018
  • Latest release: Sep 11, 2023
  • Number of updates: 11
  • Update frequency: every 159.5 days
  • Top authors: cleuenberg (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

900+ active / 3,727 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Really Disable Emojis
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.92 ▲0.70
Dashboard /wp-admin3.31 ▲0.0154.40 ▲2.71
Posts /wp-admin/edit.php3.36 ▲0.0048.60 ▲0.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.57 ▼3.90
Media Library /wp-admin/upload.php3.23 ▲0.0038.73 ▲3.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Really Disable Emojis
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.25 ▼1.121.77 ▼0.0643.66 ▲2.05
Dashboard /wp-admin2,206 ▲325.83 ▲0.9498.59 ▼7.7439.34 ▼3.63
Posts /wp-admin/edit.php2,092 ▲32.12 ▲0.1345.76 ▲4.1840.64 ▲4.97
Add New Post /wp-admin/post-new.php1,528 ▲1423.01 ▲5.47623.35 ▲21.6263.67 ▲15.99
Media Library /wp-admin/upload.php1,385 ▼04.20 ▲0.01102.68 ▲1.3146.00 ▼0.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/really-disable-emojis/really-disable-emojis.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% 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:
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

really-disable-emojis/really-disable-emojis.php 85% from 13 tests

The entry point to "Really Disable Emojis" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

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
There were no executable files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1173834

PHP code Passed 2 tests

An overview 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.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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin