90% remove-emoji-css-and-js

Code Review | Remove Emoji CSS and JS

WordPress plugin Remove Emoji CSS and JS scored90%from 54 tests.

About plugin

  • Plugin page: remove-emoji-css-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2020
  • Latest release: Nov 2, 2022
  • Number of updates: 6
  • Update frequency: every 116.7 days
  • Top authors: boopathi0001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Remove Emoji CSS and JS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0037.94 ▼7.58
Dashboard /wp-admin3.31 ▲0.0052.94 ▲1.28
Posts /wp-admin/edit.php3.36 ▼0.0046.07 ▼4.55
Add New Post /wp-admin/post-new.php5.88 ▼0.0086.91 ▼5.40
Media Library /wp-admin/upload.php3.23 ▼0.0037.98 ▲0.59

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Remove Emoji CSS and JS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4813.37 ▼1.061.56 ▼0.5844.19 ▲2.60
Dashboard /wp-admin2,218 ▲125.86 ▼0.0498.73 ▼5.7242.43 ▼2.62
Posts /wp-admin/edit.php2,103 ▲32.06 ▲0.0536.91 ▼3.4034.77 ▼1.25
Add New Post /wp-admin/post-new.php1,526 ▼1917.64 ▼5.47689.81 ▲2.9051.87 ▼21.85
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.01100.05 ▼21.2345.26 ▼3.38

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

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
Looking good! No server-side errors or output on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: remove emoji css and js, disable emojis, emoji css and js, remove emoji, disable emoji scripts

remove-emoji-css-and-js/remove-emoji-css-js.php 92% from 13 tests

This is the main PHP file of "Remove Emoji CSS and JS" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("remove-emoji-css-and-js.php" instead of "remove-emoji-css-js.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1196

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin