94% font-emoticons

Code Review | Font Emoticons

WordPress plugin Font Emoticons scored 94% from 54 tests.

About plugin

  • Plugin page: font-emoticons
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.0.3
  • WordPress version: 5.8.1
  • First release: Dec 21, 2012
  • Latest release: Jan 11, 2019
  • Number of updates: 17
  • Update frequency: every 130.2 days
  • Top authors: manski (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

800+ active / 14,082 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼140.92ms] Passed 4 tests

Server-side resources used by Font Emoticons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0737.17 ▲2.92
Dashboard /wp-admin3.11 ▲0.0648.56 ▼0.69
Posts /wp-admin/edit.php3.16 ▲0.0644.13 ▼1.81
Add New Post /wp-admin/post-new.php5.47 ▲0.0489.24 ▼562.03
Media Library /wp-admin/upload.php3.05 ▲0.0533.41 ▲0.85

Server storage [IO: ▲0.10MB] [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: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Font Emoticons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲8515.82 ▲0.307.49 ▼1.2147.24 ▲1.72
Dashboard /wp-admin2,989 ▲555.96 ▲0.05136.32 ▼30.46109.73 ▼17.39
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0165.34 ▼9.5584.75 ▼10.41
Add New Post /wp-admin/post-new.php1,672 ▲17218.80 ▲0.23355.95 ▼1.49108.44 ▲0.75
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.01154.73 ▲16.23116.51 ▼0.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/font-emoticons/FontEmoticonsPlugin.php:89

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: smileys, emoticons

font-emoticons/font-emoticons.php Passed 13 tests

Analyzing the main PHP file in "Font Emoticons" version 1.5.0
48 characters long description:
Replace the standard WP Smileys with font icons.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin243 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34379155
CSS14149
SVG10039

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods770.00%
▷ Protected methods00.00%
▷ Private methods330.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
No PNG files were detected