84% wapuuvatar

Code Review | Wapuuvatar

WordPress plugin Wapuuvatar scored 84% from 54 tests.

About plugin

  • Plugin page: wapuuvatar
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Mar 21, 2023
  • Number of updates: 43
  • Update frequency: every 62.5 days
  • Top authors: leewillis77 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50+ active / 4,821 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.47ms] Passed 4 tests

A check of server-side resources used by Wapuuvatar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.22 ▼2.61
Dashboard /wp-admin3.31 ▲0.0057.01 ▼2.30
Posts /wp-admin/edit.php3.36 ▲0.0056.23 ▲2.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.33 ▲2.27
Media Library /wp-admin/upload.php3.23 ▲0.0039.57 ▲0.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 260 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Wapuuvatar: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼013.19 ▼1.231.95 ▼0.0641.45 ▼3.23
Dashboard /wp-admin2,203 ▼35.79 ▼0.0796.97 ▼18.1840.54 ▼4.12
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0335.36 ▼0.9534.43 ▲0.06
Add New Post /wp-admin/post-new.php1,533 ▼023.31 ▼0.00662.36 ▼32.1257.88 ▼5.21
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.02111.72 ▲5.3944.37 ▲0.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wapuuvatar/wapuuvatar.php:38

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Wapuus in action) image missing
Please take inspiration from this readme.txt

wapuuvatar/wapuuvatar.php Passed 13 tests

The principal PHP file in "Wapuuvatar" v. 3.0.3 is loaded by WordPress automatically on each request
33 characters long description:
Use Wapuus for your user avatars.

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
Success! There were no dangerous files found in this plugin1,325 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JSON200857
Markdown1580281
PHP11763187

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
253 compressed PNG files occupy 2.10MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/taekwon-blue-wapuu-256.png13.00KB13.36KB0.00%
dist/r2-wapuu-128.png6.02KB6.07KB0.00%
dist/wapuu-minion-256.png13.48KB13.96KB0.00%
dist/wapuu-snitch-256.png12.12KB12.56KB0.00%
dist/tonkotsu-wapuu-256.png16.37KB17.04KB0.00%