94% wp-disable-emjoi

Code Review | WP Disable Emoji

WordPress plugin WP Disable Emoji scored 94% from 54 tests.

About plugin

  • Plugin page: wp-disable-emjoi
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 5.8.1
  • First release: May 15, 2015
  • Latest release: Apr 21, 2017
  • Number of updates: 8
  • Update frequency: every 88.5 days
  • Top authors: 0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,894 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by WP Disable Emoji
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.76 ▲15.83
Dashboard /wp-admin3.06 ▲0.0144.15 ▲1.64
Posts /wp-admin/edit.php3.11 ▲0.0042.64 ▲4.07
Add New Post /wp-admin/post-new.php5.43 ▼0.0192.37 ▼581.48
Media Library /wp-admin/upload.php3.00 ▼0.0133.32 ▼8.83

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Disable Emoji: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,758 ▼83815.07 ▼0.962.09 ▼6.4749.64 ▲2.46
Dashboard /wp-admin2,136 ▼7955.78 ▼0.14111.05 ▼26.64111.22 ▲3.52
Posts /wp-admin/edit.php2,056 ▼6832.58 ▼0.1438.64 ▼28.1585.17 ▼7.54
Add New Post /wp-admin/post-new.php1,499 ▼17318.69 ▼0.13370.17 ▼13.84105.05 ▼2.46
Media Library /wp-admin/upload.php1,410 ▼3944.95 ▼0.09102.34 ▼48.99132.08 ▲3.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-disable-emjoi/wp-disable-emoji.php:14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: emoji

wp-disable-emjoi/wp-disable-emoji.php 85% from 13 tests

The primary PHP file in "WP Disable Emoji" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 191 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-disable-emjoi.php" instead of "wp-disable-emoji.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131720

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.19MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/banner-772x250.png197.42KB34.54KB▼ 82.51%