84% wp-profile-picture

Code Review | Wordpress Profile Picture

WordPress plugin Wordpress Profile Picture scored 84% from 54 tests.

About plugin

  • Plugin page: wp-profile-picture
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: Dec 14, 2018
  • Number of updates: 10
  • Update frequency: every 9.3 days
  • Top authors: nishitmanjarawala (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 541 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Wordpress Profile Picture
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.25 ▼5.21
Dashboard /wp-admin3.32 ▲0.0141.87 ▼3.86
Posts /wp-admin/edit.php3.37 ▲0.0139.99 ▼3.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.68 ▼23.41
Media Library /wp-admin/upload.php3.24 ▲0.0133.69 ▲1.56

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wordpress Profile Picture
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.43 ▼1.211.50 ▼0.4839.72 ▲0.86
Dashboard /wp-admin2,208 ▲204.86 ▼0.04118.36 ▼2.5644.93 ▼5.30
Posts /wp-admin/edit.php2,091 ▲22.03 ▼0.0739.25 ▼0.3435.93 ▲0.29
Add New Post /wp-admin/post-new.php1,531 ▲318.31 ▲0.06603.71 ▼5.5051.72 ▼3.97
Media Library /wp-admin/upload.php1,390 ▼14.31 ▲0.0194.65 ▼0.1339.82 ▼1.74

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-profile-picture/wp-profile-picture.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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 to be fixed: Please take inspiration from this readme.txt

wp-profile-picture/wp-profile-picture.php 92% from 13 tests

The main PHP script in "Wordpress Profile Picture" version 1... is automatically included on every request by WordPress
You should first fix the following items:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110869

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin