62% profilepro

Code Review | ProfilePro

WordPress plugin ProfilePro scored62%from 54 tests.

About plugin

  • Plugin page: profilepro
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.3-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 4, 2018
  • Latest release: Apr 8, 2018
  • Number of updates: 13
  • Update frequency: every 0.3 days
  • Top authors: wpproking (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,217 total downloads

Benchmarks

Plugin footprint 65% 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.89MB] [CPU: ▼31.14ms] Passed 4 tests

An overview of server-side resources used by ProfilePro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.40 ▲0.03
Dashboard /wp-admin3.06 ▼0.2526.24 ▼25.33
Posts /wp-admin/edit.php3.06 ▼0.3024.81 ▼23.68
Add New Post /wp-admin/post-new.php3.06 ▼2.8324.24 ▼67.70
Media Library /wp-admin/upload.php3.06 ▼0.1727.05 ▼7.84
ProfilePro /wp-admin/admin.php?page=profilepro3.0629.30
Forms /wp-admin/edit.php?post_type=profilepro_form3.0626.32

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
profilepro_pages
profilepro_default_profile
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
profilepro_default_login
profilepro
widget_recent-comments

Browser metrics Passed 4 tests

ProfilePro: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲18714.04 ▼0.3013.69 ▲11.8945.34 ▲0.54
Dashboard /wp-admin2,260 ▲865.75 ▲0.07107.90 ▲11.4254.21 ▲8.69
Posts /wp-admin/edit.php2,176 ▲762.29 ▲0.3139.65 ▲0.2342.15 ▲7.01
Add New Post /wp-admin/post-new.php1,569 ▲4323.77 ▲0.73675.70 ▼12.2136.15 ▼22.71
Media Library /wp-admin/upload.php1,458 ▲584.49 ▲0.29113.49 ▲10.0349.51 ▲3.90
ProfilePro /wp-admin/admin.php?page=profilepro9572.3333.8936.04
Forms /wp-admin/edit.php?post_type=profilepro_form1,8772.2736.3435.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • profilepro
    • profilepro_default_login
    • widget_theysaidso_widget
    • profilepro_default_profile
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=profilepro_form
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/profilepro/admin/templates/form/profilepro-admin-form-shortcode.php
  • 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/profilepro/templates/edit.php on line 1
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/profilepro/templates/login.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/profilepro/templates/edit.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/profilepro/templates/forgot.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_meta() in wp-content/plugins/profilepro/templates/profile.php:5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/profilepro/admin/admin.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/profilepro/templates/profile.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/profilepro/admin/templates/form/profilepro-admin-form-autologin.php:2
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/profilepro/templates/profile.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/profilepro/admin/templates/form/profilepro-admin-form-builder.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% 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 your attention:
  • Tags: There are too many tags (18 tag instead of maximum 10)
The official readme.txt is a good inspiration

profilepro/profilepro.php Passed 13 tests

Analyzing the main PHP file in "ProfilePro" version 1.3
64 characters long description:
The easiest way to create beautiful user profiles with WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin4,147 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP30509322,297
CSS5155501,118
JavaScript46719370
SVG100362

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity22.80
▷ Minimum class complexity3.00
▷ Maximum class complexity53.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/profiledefault.png5.52KB3.60KB▼ 34.74%