84% card-elements-for-wpbakery

Code Review | Card Elements for WPBakery

WordPress plugin Card Elements for WPBakery scored84%from 54 tests.

About plugin

  • Plugin page: card-elements-for...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 13, 2021
  • Latest release: Oct 5, 2023
  • Number of updates: 6
  • Update frequency: every 130.5 days
  • Top authors: techeshta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,403 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.71ms] Passed 4 tests

A check of server-side resources used by Card Elements for WPBakery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.35 ▼1.42
Dashboard /wp-admin3.34 ▼0.0048.71 ▼13.16
Posts /wp-admin/edit.php3.39 ▲0.0446.19 ▼4.77
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.78 ▼7.49
Media Library /wp-admin/upload.php3.27 ▲0.0433.45 ▲0.52

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Card Elements for WPBakery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲9714.38 ▲0.034.07 ▲2.3550.89 ▲6.45
Dashboard /wp-admin2,205 ▲255.49 ▼0.1189.51 ▲1.3338.01 ▼2.59
Posts /wp-admin/edit.php2,107 ▲72.09 ▲0.1037.00 ▼3.7233.34 ▼5.70
Add New Post /wp-admin/post-new.php1,544 ▲1818.30 ▼4.79636.23 ▼44.4767.50 ▲13.81
Media Library /wp-admin/upload.php1,407 ▲44.31 ▲0.1294.59 ▼4.3841.52 ▼6.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPBMap' not found in wp-content/plugins/card-elements-for-wpbakery/include/post-card/wpbakery-post-card-2.php:10
    • > PHP Notice
      Undefined variable: cewb_testimonial_image in wp-content/plugins/card-elements-for-wpbakery/include/testimonial-card/wpbakery-testimonial-card-1.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'WPBMap' not found in wp-content/plugins/card-elements-for-wpbakery/include/post-card/wpbakery-post-card-1.php:10
    • > PHP Warning
      Use of undefined constant CEWB_URL - assumed 'CEWB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/card-elements-for-wpbakery/include/testimonial-card/wpbakery-testimonial-card-6.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_build_link() in wp-content/plugins/card-elements-for-wpbakery/include/profile-card/wpbakery-profile-card-1.php:9
    • > PHP Notice
      Undefined variable: cewb_testimonial_image in wp-content/plugins/card-elements-for-wpbakery/include/testimonial-card/wpbakery-testimonial-card-6.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_build_link() in wp-content/plugins/card-elements-for-wpbakery/include/profile-card/wpbakery-profile-card-11.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_build_link() in wp-content/plugins/card-elements-for-wpbakery/include/profile-card/wpbakery-profile-card-2.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/card-elements-for-wpbakery/widgets/testimonial-card-widget.php:58
    • > PHP Fatal error
      Uncaught Error: Class 'WPBMap' not found in wp-content/plugins/card-elements-for-wpbakery/include/testimonial-card/wpbakery-testimonial-card-6.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
9 plugin tags: wpbakery, card elements for wpbakery, profile module, wpbakery testimonial card widget, wpbakery profile card widget...

card-elements-for-wpbakery/card-elements-for-wpbakery.php Passed 13 tests

The primary PHP file in "Card Elements for WPBakery" version 1.0.4 is used by WordPress to initiate all plugin functionality
122 characters long description:
Showcase useful card elements like display team profiles, testimonials and post with card style for WPBakery page builder.

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 plugin4,982 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP192123713,321
CSS647691,659
JavaScript1002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.50
▷ Minimum class complexity4.00
▷ Maximum class complexity11.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.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
There are no PNG files in this plugin