84% wpmyavatar

Code Review | WPMyAvatar

WordPress plugin WPMyAvatar scored84%from 54 tests.

About plugin

  • Plugin page: wpmyavatar
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 25, 2018
  • Latest release: Aug 20, 2018
  • Number of updates: 5
  • Update frequency: every 11.6 days
  • Top authors: frametagmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.23MB] [CPU: ▼18.93ms] Passed 4 tests

This is a short check of server-side resources used by WPMyAvatar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0728.16 ▼14.89
Dashboard /wp-admin3.07 ▼0.2426.32 ▼20.15
Posts /wp-admin/edit.php3.20 ▼0.1533.69 ▼14.21
Add New Post /wp-admin/post-new.php5.44 ▼0.4467.94 ▼26.46
Media Library /wp-admin/upload.php3.13 ▼0.0928.06 ▼5.50

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WPMyAvatar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.22 ▼1.151.82 ▲0.1744.62 ▼4.59
Dashboard /wp-admin2,209 ▲215.12 ▲0.23107.15 ▼5.8442.01 ▼1.26
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0241.54 ▲0.3035.50 ▲0.33
Add New Post /wp-admin/post-new.php1,536 ▲1522.85 ▼0.35653.69 ▼18.1154.53 ▲1.44
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0295.47 ▼5.5741.84 ▼2.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_action() in wp-content/plugins/wpmyavatar/wpmyavatar.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: custom profile pic, avatar, custom avatar, customization, personalization...

wpmyavatar/wpmyavatar.php Passed 13 tests

This is the main PHP file of "WPMyAvatar" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Select a user profile avatar from the WordPress media library.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13023124
CSS1103

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions9
▷ Named functions9100.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
There were not PNG files found in your plugin