84% disable-wp-emojis

Code Review | Disable WP Emojis

WordPress plugin Disable WP Emojis scored 84% from 54 tests.

About plugin

  • Plugin page: disable-wp-emojis
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2015
  • Latest release: May 26, 2019
  • Number of updates: 8
  • Update frequency: every 158.7 days
  • Top authors: bhimpfen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,806 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Disable WP Emojis
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.89 ▼3.32
Dashboard /wp-admin3.31 ▲0.0043.55 ▼5.44
Posts /wp-admin/edit.php3.36 ▲0.0045.90 ▼2.78
Add New Post /wp-admin/post-new.php5.89 ▼0.0085.90 ▼12.70
Media Library /wp-admin/upload.php3.23 ▼0.0033.42 ▼3.69

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Disable WP Emojis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲5913.63 ▼0.791.40 ▼0.3443.58 ▲5.35
Dashboard /wp-admin2,203 ▲155.83 ▼0.0993.73 ▼7.7037.50 ▼8.01
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0433.79 ▼12.2234.51 ▲0.20
Add New Post /wp-admin/post-new.php1,528 ▲923.38 ▲0.12664.64 ▲9.0653.95 ▲2.50
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.0794.31 ▼12.7944.16 ▼1.12

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-wp-emojis/disable-wp-emojis.php:30

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
6 plugin tags: icon, emojis, emoticons, icons, emoticon...

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

The main file in "Disable WP Emojis" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Removes emojis from the WordPress front-end, admin pages, feeds and e-mails.

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
No dangerous file extensions were detected11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111811

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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
There were not PNG files found in your plugin