78% profile-master

Code Review | Profile Master for Elementor

WordPress plugin Profile Master for Elementor scored78%from 54 tests.

About plugin

  • Plugin page: profile-master
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2023
  • Latest release: Apr 11, 2023
  • Number of updates: 6
  • Update frequency: every 3.0 days
  • Top authors: rashid87 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /127 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼3.09ms] 75% from 4 tests

Server-side resources used by Profile Master for Elementor
It is recommended to improve the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,092.73ms on /wp-admin/admin.php?page=profilemaster-library)
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4754.36 ▲10.88
Dashboard /wp-admin3.77 ▲0.4756.62 ▲2.38
Posts /wp-admin/edit.php3.82 ▲0.4651.37 ▼5.08
Add New Post /wp-admin/post-new.php6.31 ▲0.4289.77 ▼15.62
Media Library /wp-admin/upload.php3.63 ▲0.4044.53 ▲5.96
Profile master /wp-admin/admin.php?page=profilemaster-settings3.5937.36
Library /wp-admin/admin.php?page=profilemaster-library3.831,092.73

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
profilemaster_api_response

Browser metrics Passed 4 tests

Checking browser requirements for Profile Master for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲19513.67 ▼0.8911.49 ▲9.7547.62 ▲1.33
Dashboard /wp-admin2,219 ▲395.68 ▲0.0795.38 ▲6.0445.69 ▼1.09
Posts /wp-admin/edit.php2,134 ▲342.19 ▲0.2235.61 ▼1.0937.64 ▲0.28
Add New Post /wp-admin/post-new.php1,565 ▲3723.18 ▼0.03648.16 ▼11.3632.53 ▼20.27
Media Library /wp-admin/upload.php1,430 ▲274.24 ▲0.04101.70 ▼1.5241.58 ▼3.58
Profile master /wp-admin/admin.php?page=profilemaster-settings8241.9427.7239.10
Library /wp-admin/admin.php?page=profilemaster-library8461.7625.1127.12

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • profilemaster_api_response
    • db_upgraded

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 50% from 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
Almost there! Just fix the following items
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function profilemaster() in wp-content/plugins/profile-master/widgets/khulna/views/template-1.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/profile-master/includes/classes/class-functions.php:169
    • > PHP Warning
      array_map() expects parameter 1 to be a valid callback, function 'sanitize_text_field' not found or invalid function name in wp-content/plugins/profile-master/templates/settings-dashboard.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function profilemaster() in wp-content/plugins/profile-master/widgets/khulna/views/template-2.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function profilemaster() in wp-content/plugins/profile-master/widgets/slider/views/template-2.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function profilemaster() in wp-content/plugins/profile-master/templates/settings-dashboard.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/profile-master/templates/template-groups.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function profilemaster() in wp-content/plugins/profile-master/widgets/slider/views/template-1.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/profile-master/includes/classes/class-widget-base.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-master/includes/classes/class-hooks.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=profilemaster-library
    • > Network (severe)
    wp-content/plugins/profile-master/assets/admin/css/select2.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=profilemaster-library
    • > Network (severe)
    wp-content/plugins/profile-master/assets/admin/js/select2.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Widgets List)
The official readme.txt might help

profile-master/profile-master.php Passed 13 tests

Analyzing the main PHP file in "Profile Master for Elementor" version 2.0.0
53 characters long description:
Profile master is a Addon for Elemntor Profile Making

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected19,617 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS52,9116415,458
PHP161,0847654,057
JavaScript32939102

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity54.43
▷ Minimum class complexity1.00
▷ Maximum class complexity297.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods118
▷ Static methods00.00%
▷ Public methods10084.75%
▷ Protected methods43.39%
▷ Private methods1411.86%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/feature.png48.39KB48.35KB0.08%
assets/images/shape-1.png5.77KB2.54KB▼ 55.92%
assets/images/logo.png14.74KB6.82KB▼ 53.71%