84% emote

Code Review | Emote for WordPress

WordPress plugin Emote for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: emote
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Sep 2, 2021
  • Latest release: Oct 6, 2021
  • Number of updates: 4
  • Update frequency: every 8.5 days
  • Top authors: emote (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /530 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Emote for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.62 ▼2.92
Dashboard /wp-admin3.31 ▲0.0046.25 ▼2.91
Posts /wp-admin/edit.php3.36 ▲0.0044.07 ▼7.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.06 ▲13.69
Media Library /wp-admin/upload.php3.23 ▲0.0034.80 ▲0.41

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Emote for WordPress: 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 ▲6513.30 ▼0.961.67 ▼0.1740.45 ▼12.55
Dashboard /wp-admin2,206 ▲244.86 ▼0.02120.05 ▲3.1046.62 ▲1.26
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0336.05 ▼2.4331.85 ▼2.56
Add New Post /wp-admin/post-new.php1,524 ▼923.17 ▲0.02649.72 ▼86.6063.61 ▲7.41
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0594.79 ▼2.0241.67 ▲0.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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
Everything seems fine, however 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
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/emote/admin/partials/emote-admin-display.php
    • > /wp-content/plugins/emote/public/partials/emote-public-display.php
    • > /wp-content/plugins/emote/import/partials/cms-import-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
There were not plugin tags detected

emote/emote.php Passed 13 tests

The main PHP file in "Emote for WordPress" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Emote replaces default WordPress comments with the Emote comment system.

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
No dangerous file extensions were detected32 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6118315
JavaScript36819
Markdown1308
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code1.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin