77% profile-card-for-wpbakery-page-builder

Code Review | Profile Card for WPBakery Page Builder

WordPress plugin Profile Card for WPBakery Page Builder scored 77% from 54 tests.

About plugin

  • Plugin page: profile-card-for-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Aug 28, 2018
  • Latest release: Aug 28, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Profile Card for WPBakery Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.63 ▼1.38
Dashboard /wp-admin3.31 ▲0.0044.30 ▼4.74
Posts /wp-admin/edit.php3.36 ▲0.0046.41 ▲1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.77 ▲0.34
Media Library /wp-admin/upload.php3.23 ▲0.0033.49 ▼3.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Profile Card for WPBakery Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.471.73 ▼0.0644.06 ▼4.77
Dashboard /wp-admin2,206 ▲154.85 ▼0.05107.11 ▲7.5441.47 ▲2.91
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0339.88 ▼2.3335.33 ▼0.65
Add New Post /wp-admin/post-new.php1,520 ▲623.36 ▲5.86634.05 ▼82.9757.32 ▼4.60
Media Library /wp-admin/upload.php1,391 ▲34.23 ▼0.0295.84 ▼12.4045.53 ▼1.92

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/profile-card-for-wpbakery-page-builder/profile-card-visual-composer.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/profile-card-for-wpbakery-page-builder/admin/params/slider/slider-params.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/profile-card-for-wpbakery-page-builder/profile-card/profile-card.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/profile-card-for-wpbakery-page-builder/admin/params/slider/slider-params.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (profile card backend.), #2 (profile card backend.), #3 (profile card backend.)
You can take inspiration from this readme.txt

profile-card-for-wpbakery-page-builder/profile-card-visual-composer.php 85% from 13 tests

"Profile Card for WPBakery Page Builder" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("profile-card-for-wpbakery-page-builder.php" instead of "profile-card-visual-composer.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected2,551 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP597281,243
CSS3194710
SVG100565
JavaScript111333

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/profile_card_icon.png1.56KB0.68KB▼ 56.60%