84% emoji-emoticons

Code Review | Emoji Emoticons

WordPress plugin Emoji Emoticons scored84%from 54 tests.

About plugin

  • Plugin page: emoji-emoticons
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Feb 21, 2013
  • Latest release: Feb 21, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: gbaptistas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,951 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.12MB] [CPU: ▼4.64ms] Passed 4 tests

Server-side resources used by Emoji Emoticons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.11 ▼0.28
Dashboard /wp-admin3.43 ▲0.1245.01 ▼4.82
Posts /wp-admin/edit.php3.48 ▲0.1247.61 ▼0.40
Add New Post /wp-admin/post-new.php6.01 ▲0.1291.60 ▼12.80
Media Library /wp-admin/upload.php3.35 ▲0.1235.90 ▼0.55

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 875 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Emoji Emoticons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.47 ▼0.281.69 ▲0.0342.69 ▼1.40
Dashboard /wp-admin2,206 ▲174.85 ▼0.11106.91 ▼14.5138.41 ▼9.71
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0439.27 ▼2.4935.13 ▼2.61
Add New Post /wp-admin/post-new.php1,514 ▼2017.49 ▼5.87656.99 ▲54.4748.08 ▲1.46
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.0194.73 ▼4.5539.64 ▼4.29

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
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_action() in wp-content/plugins/emoji-emoticons/emoji-emoticons.php:76

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: emoji, emoticons

emoji-emoticons/emoji-emoticons.php Passed 13 tests

The entry point to "Emoji Emoticons" version 0.1 is a PHP file that has certain tags in its header comment area
62 characters long description:
Support for Emoji Emoticons: http://www.emoji-cheat-sheet.com/

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin916 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22810916

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods250.00%
▷ Public methods250.00%
▷ Protected methods00.00%
▷ Private methods250.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

PNG files should be compressed to save space and minimize bandwidth usage
870 compressed PNG files occupy 1.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
emojis/izakaya_lantern.png1.10KB1.17KB0.00%
emojis/potable_water.png1.15KB1.19KB0.00%
emojis/triangular_ruler.png1.41KB0.97KB▼ 31.25%
emojis/sparkling_heart.png1.30KB1.30KB0.00%
emojis/speaker.png1.31KB1.18KB▼ 9.96%