90% woo-custom-profile-picture

Code Review | Woocommerce Custom Profile Picture

WordPress plugin Woocommerce Custom Profile Picture scored90%from 54 tests.

About plugin

  • Plugin page: woo-custom-profil...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 18, 2017
  • Latest release: Dec 19, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ecomerciar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,072 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.01MB] [CPU: ▼8.76ms] Passed 4 tests

Server-side resources used by Woocommerce Custom Profile Picture
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.22 ▲0.17
Dashboard /wp-admin3.31 ▼0.0446.48 ▼16.44
Posts /wp-admin/edit.php3.36 ▲0.0041.36 ▼3.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.16 ▼14.81
Media Library /wp-admin/upload.php3.23 ▲0.0038.22 ▲3.72

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Woocommerce Custom Profile Picture
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.281.82 ▲0.2437.51 ▼3.90
Dashboard /wp-admin2,198 ▲215.57 ▼0.1086.99 ▲2.4937.62 ▼5.47
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.1032.83 ▼2.8933.72 ▼1.94
Add New Post /wp-admin/post-new.php1,528 ▼123.08 ▼0.26683.45 ▲23.9852.94 ▲1.84
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.05106.27 ▲7.3344.50 ▼7.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: profile, woocommerce, profile picture

woo-custom-profile-picture/woocommerce-custom-profile-picture.php 92% from 13 tests

Analyzing the main PHP file in "Woocommerce Custom Profile Picture" version 1.0
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-custom-profile-picture.php" instead of "woocommerce-custom-profile-picture.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1243480

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin