84% cs-disable-emojis

Code Review | CS Disable Emojis

WordPress plugin CS Disable Emojis scored84%from 54 tests.

About plugin

  • Plugin page: cs-disable-emojis
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 5, 2018
  • Latest release: Apr 5, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ketuchetan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /738 total downloads


Plugin footprint 82% from 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: ▼9.90ms] Passed 4 tests

A check of server-side resources used by CS Disable Emojis
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.57 ▼0.46
Dashboard /wp-admin3.31 ▼0.0351.39 ▼12.66
Posts /wp-admin/edit.php3.36 ▲0.0149.54 ▼6.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.32 ▼19.57
Media Library /wp-admin/upload.php3.23 ▲0.0137.73 ▼0.62

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/cs-disable-emojis/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by CS Disable Emojis
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲6314.45 ▲0.081.63 ▼0.5748.65 ▲8.46
Dashboard /wp-admin2,224 ▲214.82 ▼0.2196.96 ▼13.3838.11 ▼11.03
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0736.12 ▼7.1934.34 ▼3.25
Add New Post /wp-admin/post-new.php1,540 ▲1423.00 ▲5.37676.89 ▲36.3950.54 ▼24.56
Media Library /wp-admin/upload.php1,403 ▲34.32 ▲0.11101.59 ▼1.9042.34 ▼6.60

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
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cs-disable-emojis/cs-disable-emojis.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: remove emojis, remove, wordpress remove emojis, emojis

cs-disable-emojis/cs-disable-emojis.php Passed 13 tests

The primary PHP file in "CS Disable Emojis" version 1.0 is used by WordPress to initiate all plugin functionality
60 characters long description:
This plugin will disables the WordPress emoji functionality.

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
Everything looks great! No dangerous files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG files were detected