84% emojized

Code Review | Emojized

WordPress plugin Emojized scored84%from 54 tests.

About plugin

  • Plugin page: emojized
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Jun 18, 2017
  • Number of updates: 6
  • Update frequency: every 62.7 days
  • Top authors: theode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,331 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.62MB] [CPU: ▼12.87ms] Passed 4 tests

A check of server-side resources used by Emojized
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.29 ▼2.22
Dashboard /wp-admin3.36 ▲0.0547.09 ▲0.77
Posts /wp-admin/edit.php3.41 ▲0.0549.25 ▲4.97
Add New Post /wp-admin/post-new.php3.24 ▼2.6541.29 ▼47.64
Media Library /wp-admin/upload.php3.28 ▲0.0535.51 ▼2.40
New Emoji /wp-admin/post-new.php?post_type=emojize3.3241.70
Emojized /wp-admin/edit.php?post_type=emojize3.3337.69

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Emojized
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16913.53 ▼0.715.97 ▲4.2543.75 ▲1.66
Dashboard /wp-admin2,232 ▲504.87 ▼0.20112.25 ▲8.0743.60 ▼0.35
Posts /wp-admin/edit.php2,118 ▲292.03 ▲0.0234.11 ▲0.8238.89 ▲1.29
Add New Post /wp-admin/post-new.php1,557 ▲2323.14 ▼0.09678.74 ▼23.6653.67 ▼1.48
Media Library /wp-admin/upload.php1,420 ▲324.32 ▲0.0397.66 ▼1.4243.93 ▲1.54
New Emoji /wp-admin/post-new.php?post_type=emojize1,5972.6150.1965.59
Emojized /wp-admin/edit.php?post_type=emojize1,1021.9930.4129.83

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 4× 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/emojized/emojized-post.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emojized/emojized-metabox.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emojized/emojized-metabox.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emojized/emojized-endpoints.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: reactions, emoji, poll, voting

emojized/emojized.php Passed 13 tests

The main PHP file in "Emojized" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
This is a plugin which is making emojis automatically

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin247 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP54316215
CSS14024
JavaScript1408

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin