84% wp-first-letter-avatar

Code Review | WP First Letter Avatar

WordPress plugin WP First Letter Avatar scored84%from 54 tests.

About plugin

  • Plugin page: wp-first-letter-a...
  • Plugin version: 2.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 18, 2015
  • Latest release: Mar 12, 2017
  • Number of updates: 50
  • Update frequency: every 15.1 days
  • Top authors: DanielAGW (60%)Dev49.net (42%)

Code review

54 tests

User reviews

32 reviews

Install metrics

4,000+ active /61,384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.59ms] Passed 4 tests

An overview of server-side resources used by WP First Letter Avatar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.74 ▼4.96
Dashboard /wp-admin3.44 ▲0.1448.22 ▼2.52
Posts /wp-admin/edit.php3.56 ▲0.2049.83 ▲2.70
Add New Post /wp-admin/post-new.php6.02 ▲0.1491.24 ▲1.12
Media Library /wp-admin/upload.php3.36 ▲0.1434.67 ▲0.02
WP First Letter Avatar /wp-admin/options-general.php?page=wp_first_letter_avatar3.3333.49

Server storage [IO: ▲1.47MB] [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: 1,465 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
wpfla_settings
widget_recent-comments

Browser metrics Passed 4 tests

WP First Letter Avatar: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.29 ▼1.061.85 ▼0.1440.38 ▼2.94
Dashboard /wp-admin2,224 ▲335.84 ▼0.06103.77 ▲3.0380.19 ▲36.93
Posts /wp-admin/edit.php2,107 ▲212.00 ▼0.0435.55 ▼2.0234.16 ▼0.08
Add New Post /wp-admin/post-new.php1,537 ▼523.19 ▲4.90740.79 ▲129.4755.13 ▲1.55
Media Library /wp-admin/upload.php1,396 ▲114.14 ▼0.11100.74 ▼2.2045.68 ▲4.34
WP First Letter Avatar /wp-admin/options-general.php?page=wp_first_letter_avatar9792.0324.6025.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=wp_first_letter_avatar
    • > Network (severe)
    http://i2.wp.com/wp.com/wp-content/plugins/wp-first-letter-avatar/images/default/48/latin_a.png - Failed to load resource: the server responded with a status of 404 (File Not Found)
    • > GET request to /wp-admin/options-general.php?page=wp_first_letter_avatar
    • > Network (severe)
    http://i2.wp.com/wp.com/wp-content/plugins/wp-first-letter-avatar/images/default/96/latin_a.png - Failed to load resource: the server responded with a status of 404 (File Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

wp-first-letter-avatar/wp-first-letter-avatar.php 92% from 13 tests

The main PHP script in "WP First Letter Avatar" version 2.2.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin701 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3171206488
PO File26478208
CSS14115

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity39.00
▷ Minimum class complexity8.00
▷ Maximum class complexity70.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2184.00%
▷ Protected methods00.00%
▷ Private methods416.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.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
1455 compressed PNG files occupy 1.30MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/opensans/512/greek_913.png2.02KB2.12KB0.00%
images/opensans/128/latin_g.png0.65KB0.72KB0.00%
images/default/128/arabic_1602.png1.42KB1.49KB0.00%
images/default/128/cyrillic_1081.png1.00KB1.04KB0.00%
images/default/128/latin_v.png0.69KB0.80KB0.00%