84% wp-local-emoji

Code Review | WP Local Emoji

WordPress plugin WP Local Emoji scored84%from 54 tests.

About plugin

  • Plugin page: wp-local-emoji
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: Mar 18, 2016
  • Number of updates: 7
  • Update frequency: every 44.3 days
  • Top authors: extendwings (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /1,740 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: ▼4.59ms] Passed 4 tests

An overview of server-side resources used by WP Local Emoji
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.28 ▲5.35
Dashboard /wp-admin3.32 ▼0.0346.86 ▼13.10
Posts /wp-admin/edit.php3.37 ▲0.0143.55 ▲1.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.45 ▼6.19
Media Library /wp-admin/upload.php3.24 ▲0.0134.97 ▼0.63

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3,326 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Local Emoji
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.40 ▼0.011.69 ▼0.0344.84 ▲4.15
Dashboard /wp-admin2,195 ▲175.51 ▼0.2884.00 ▼14.1441.70 ▲1.40
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0332.95 ▼7.9234.94 ▲0.31
Add New Post /wp-admin/post-new.php1,526 ▼322.82 ▼0.29663.94 ▲39.2256.50 ▼11.19
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0196.64 ▼5.7141.30 ▼4.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-local-emoji/wp-local-emoji.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: emoji, offline, local, japanese

wp-local-emoji/wp-local-emoji.php 92% from 13 tests

The main PHP file in "WP Local Emoji" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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
Good job! No executable or dangerous file extensions detected1,724 lines of code in 1,654 files:
LanguageFilesBlank linesComment linesLines of code
SVG1,652001,652
Markdown116042
PHP1101130

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods250.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1661 compressed PNG files occupy 1.43MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
72x72/1f1f3-1f1f4.png0.54KB0.56KB0.00%
72x72/1f4c7.png0.62KB0.65KB0.00%
72x72/1f507.png0.51KB0.56KB0.00%
72x72/1f61c.png1.06KB1.09KB0.00%
72x72/1f4d9.png0.64KB0.66KB0.00%