100% compressed-emoji

Code Review | Compressed Emoji

WordPress plugin Compressed Emoji scored 100% from 54 tests.

About plugin

  • Plugin page: compressed-emoji
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Nov 1, 2016
  • Latest release: Feb 16, 2022
  • Number of updates: 8
  • Update frequency: every 241.6 days
  • Top authors: m_uysl (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 4,030 total downloads


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.01MB] [CPU: ▼296.55ms] Passed 4 tests

A check of server-side resources used by Compressed Emoji
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0158.89 ▼25.90
Dashboard /wp-admin3.42 ▲0.0132.75 ▼2.82
Posts /wp-admin/edit.php3.65 ▲0.0141.23 ▲3.80
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.76 ▼1,158.15
Media Library /wp-admin/upload.php3.30 ▲0.0131.57 ▲0.69

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7,159 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Compressed Emoji
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲1315.83 ▲0.705.94 ▲0.082.40 ▼0.06
Dashboard /wp-admin2,895 ▲406.13 ▼0.07116.43 ▼37.78173.47 ▼6.64
Posts /wp-admin/edit.php2,691 ▼03.23 ▼0.0166.12 ▼2.09192.94 ▲41.70
Add New Post /wp-admin/post-new.php1,648 ▼2922.10 ▲0.62425.65 ▼27.06194.31 ▲22.10
Media Library /wp-admin/upload.php1,695 ▼05.51 ▲0.04275.49 ▲132.72184.30 ▼65.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 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 everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Comparison) image missing
The official readme.txt might help

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

The main file in "Compressed Emoji" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Same emoji, but compressed. It helps to serve emoji via your server.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,611 lines of code in 3,560 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
3578 compressed PNG files occupy 3.24MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings