79% edit-profile-fields

Code Review | Edit Profile Fields

WordPress plugin Edit Profile Fields scored79%from 54 tests.

About plugin

  • Plugin page: edit-profile-fields
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 7, 2020
  • Latest release: Nov 7, 2020
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: wezley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Edit Profile Fields
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.01 ▼1.64
Dashboard /wp-admin3.31 ▼0.0350.08 ▼15.28
Posts /wp-admin/edit.php3.37 ▲0.0150.23 ▼5.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.47 ▼18.39
Media Library /wp-admin/upload.php3.24 ▲0.0142.83 ▲6.81
Custom Profile Fields /wp-admin/users.php?page=cpf3.2734.70

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
cpf_field_options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Edit Profile Fields
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.36 ▲0.011.58 ▲0.0242.17 ▲0.86
Dashboard /wp-admin2,202 ▲285.62 ▼0.0487.11 ▲1.8140.63 ▼4.26
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0134.52 ▼6.1634.05 ▼3.58
Add New Post /wp-admin/post-new.php1,534 ▼123.08 ▲5.13670.39 ▲55.5951.91 ▼10.76
Media Library /wp-admin/upload.php1,401 ▲14.16 ▲0.0094.06 ▼16.7645.64 ▼3.49
Custom Profile Fields /wp-admin/users.php?page=cpf9442.0625.4229.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/edit-profile-fields/edit-profile-fields.php
    • > /wp-content/plugins/edit-profile-fields/includes/table-create.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/edit-profile-fields/uninstall.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/edit-profile-fields/includes/options-html.php:96
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/edit-profile-fields/includes/options-html.php on line 96

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: user profile, profile, admin, custom profile

edit-profile-fields/edit-profile-fields.php Passed 13 tests

Analyzing the main PHP file in "Edit Profile Fields" version 1.0.0
92 characters long description:
Add custom fields to your user profiles, which can be edited from the backend admin screens.

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
Everything looks great! No dangerous files found in this plugin392 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP465102327
CSS112065

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin