84% wp-emoji

Code Review | WP-Emoji

WordPress plugin WP-Emoji scored84%from 54 tests.

About plugin

  • Plugin page: wp-emoji
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.0
  • WordPress version: 6.3.1
  • First release: Jan 18, 2012
  • Latest release: Mar 14, 2012
  • Number of updates: 15
  • Update frequency: every 3.8 days
  • Top authors: bolo1988 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.41MB] [CPU: ▲1.23ms] Passed 4 tests

A check of server-side resources used by WP-Emoji
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.85 ▲1.3843.99 ▼0.76
Dashboard /wp-admin4.74 ▲1.4350.75 ▲0.36
Posts /wp-admin/edit.php4.81 ▲1.4557.23 ▲10.36
Add New Post /wp-admin/post-new.php7.27 ▲1.38100.30 ▲1.83
Media Library /wp-admin/upload.php4.74 ▲1.5039.40 ▲3.48
WP-Emoji Settings /wp-admin/options-general.php?page=wordpress-emoji4.7434.33

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 479 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Emoji
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.26 ▼1.521.60 ▼0.2539.35 ▼3.22
Dashboard /wp-admin2,219 ▲314.86 ▼1.03109.52 ▼6.7540.70 ▼3.67
Posts /wp-admin/edit.php2,104 ▲122.15 ▲0.1541.71 ▲5.4937.86 ▲1.81
Add New Post /wp-admin/post-new.php1,554 ▲1818.07 ▼5.10633.59 ▼2.7953.51 ▲4.02
Media Library /wp-admin/upload.php1,401 ▲104.38 ▲0.00106.88 ▲8.4244.82 ▲0.76
WP-Emoji Settings /wp-admin/options-general.php?page=wordpress-emoji8592.0522.3026.98

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function content_url() in wp-content/plugins/wp-emoji/emoji.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-emoji/wp-emoji.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-emoji === )
  • Screenshots: Screenshot #1 (插件效果) image missing
Please take inspiration from this readme.txt

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

The entry point to "WP-Emoji" version 1.2 is a PHP file that has certain tags in its header comment area
99 characters long description:
在你的博客里显示 Emoji 表情。Display Apple Emoji fonts(SoftBank) in your WordPress blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,525 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP227242,445
PO File2262680

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
472 compressed PNG files occupy 0.44MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
emoji/e211.png0.84KB0.89KB0.00%
emoji/e30a.png0.71KB0.70KB▼ 1.37%
emoji/e013.png0.83KB0.88KB0.00%
emoji/e308.png0.79KB0.98KB0.00%
emoji/e21f.png0.92KB0.91KB▼ 1.69%