94% emojized

Code Review | Emojized

WordPress plugin Emojized scored 94% 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: 5.9.2
  • 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,084 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼314.95ms] Passed 4 tests

Analyzing server-side resources used by Emojized
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0954.79 ▲5.99
Dashboard /wp-admin3.47 ▲0.0632.66 ▼8.44
Posts /wp-admin/edit.php3.69 ▲0.0541.13 ▲0.93
Add New Post /wp-admin/post-new.php3.29 ▼3.6836.97 ▼1,251.39
Media Library /wp-admin/upload.php3.35 ▲0.0524.29 ▼0.90
New Emoji /wp-admin/post-new.php?post_type=emojize3.6243.78
Emojized /wp-admin/edit.php?post_type=emojize3.3825.96

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Emojized: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,946 ▲20216.22 ▲1.109.97 ▲4.082.36 ▲0.23
Dashboard /wp-admin2,926 ▲656.13 ▲0.02126.03 ▼9.94156.06 ▼15.80
Posts /wp-admin/edit.php2,728 ▲373.23 ▲0.0067.53 ▲2.36143.17 ▼2.41
Add New Post /wp-admin/post-new.php1,686 ▼6615.91 ▼5.69421.71 ▼52.26165.18 ▲5.33
Media Library /wp-admin/upload.php1,738 ▲375.55 ▲0.03143.49 ▼4.70201.24 ▲14.63
New Emoji /wp-admin/post-new.php?post_type=emojize2,1403.95102.06166.60
Emojized /wp-admin/edit.php?post_type=emojize1,4233.0459.68114.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > 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
    • > 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-post.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: voting, reactions, poll, emoji

emojized/emojized.php Passed 13 tests

This is the main PHP file of "Emojized" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | There should be no dangerous file extensions present in any WordPress plugin
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

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin