90% compressed-emoji

Code Review | Compressed Emoji

WordPress plugin Compressed Emoji scored 90% from 54 tests.

About plugin

  • Plugin page: compressed-emoji
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 1, 2016
  • Latest release: Aug 18, 2023
  • Number of updates: 9
  • Update frequency: every 275.7 days
  • Top authors: m_uysl (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 4,910 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.38ms] Passed 4 tests

Analyzing server-side resources used by Compressed Emoji
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.62 ▲8.04
Dashboard /wp-admin3.31 ▲0.0146.22 ▼6.67
Posts /wp-admin/edit.php3.36 ▲0.0144.87 ▼6.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.21 ▼27.95
Media Library /wp-admin/upload.php3.23 ▲0.0037.68 ▲3.17

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7,269 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Compressed Emoji
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼0.761.77 ▼0.1644.31 ▼5.38
Dashboard /wp-admin2,206 ▲214.84 ▼0.97108.73 ▲1.00140.58 ▲88.86
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0434.66 ▼0.3034.68 ▲3.21
Add New Post /wp-admin/post-new.php1,523 ▼523.14 ▲4.58658.66 ▼20.5054.58 ▼9.13
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0798.02 ▼24.9841.30 ▼10.59

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: emoji, optimized emoji, emoticons, compressed emoji

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

The entry point to "Compressed Emoji" version 1.5 is a PHP file that has certain tags in its header comment area
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,590 lines of code in 3,559 files:
LanguageFilesBlank linesComment linesLines of code
SVG3,557003,557
Markdown121019
PHP181014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
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
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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
3689 compressed PNG files occupy 3.19MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/png/1f9b9-1f3fe-200d-2640-fe0f.png1.12KB1.16KB0.00%
images/png/1f468-1f3fc-200d-1f393.png1.05KB1.09KB0.00%
images/png/1f9d1-200d-1f393.png1.11KB1.17KB0.00%
images/png/1f475.png0.92KB0.96KB0.00%
images/png/1f449-1f3fb.png0.41KB0.45KB0.00%