84% keep-emoticons-as-text

Code Review | Keep Emoticons as Text

WordPress plugin Keep Emoticons as Text scored84%from 54 tests.

About plugin

  • Plugin page: keep-emoticons-as...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 0.71-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2015
  • Latest release: Mar 15, 2023
  • Number of updates: 11
  • Update frequency: every 242.6 days
  • Top authors: Geek Goddess (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /5,927 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.76ms] Passed 4 tests

An overview of server-side resources used by Keep Emoticons as Text
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.53 ▲2.94
Dashboard /wp-admin3.30 ▼0.0448.12 ▼16.21
Posts /wp-admin/edit.php3.36 ▲0.0049.37 ▼0.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.70 ▼11.85
Media Library /wp-admin/upload.php3.23 ▼0.0038.40 ▲1.35

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Keep Emoticons as Text: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.74 ▼0.551.67 ▼0.0242.30 ▼6.65
Dashboard /wp-admin2,203 ▲155.90 ▼0.00102.10 ▼12.8942.34 ▲3.89
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0134.91 ▼2.2938.49 ▲4.30
Add New Post /wp-admin/post-new.php1,536 ▼623.34 ▲5.04637.48 ▼44.8161.59 ▲3.67
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.0598.07 ▼0.8742.43 ▼2.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/keep-emoticons-as-text/keep-emoticons-as-text.php:12

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: smilies, emoticons, formatting

keep-emoticons-as-text/keep-emoticons-as-text.php Passed 13 tests

Analyzing the main PHP file in "Keep Emoticons as Text" version 1.0.0
78 characters long description:
Disables the default WordPress option of converting emoticons to image smilies

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1192

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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%
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 are no PNG files in this plugin