83% particles-backgrounds-addon-for-wpbakery-page-builder-lite

Code Review | Particles Backgrounds addon for WPBakery Page Builder Lite

WordPress plugin Particles Backgrounds addon for WPBakery Page Builder Lite scored83%from 54 tests.

About plugin

  • Plugin page: particles-backgro...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2022
  • Latest release: Jun 2, 2023
  • Number of updates: 3
  • Update frequency: every 65.7 days
  • Top authors: bigdropgr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /865 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.75ms] Passed 4 tests

A check of server-side resources used by Particles Backgrounds addon for WPBakery Page Builder Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0635.35 ▼0.27
Dashboard /wp-admin3.36 ▲0.0544.92 ▼3.57
Posts /wp-admin/edit.php3.41 ▲0.0544.52 ▼3.42
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.60 ▼11.73
Media Library /wp-admin/upload.php3.28 ▲0.0534.42 ▲2.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Particles Backgrounds addon for WPBakery Page Builder Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲4113.26 ▼1.031.69 ▼0.2441.90 ▲3.59
Dashboard /wp-admin2,218 ▲265.81 ▲0.8697.99 ▼12.1740.77 ▼3.03
Posts /wp-admin/edit.php2,100 ▲112.04 ▲0.0835.92 ▼3.5239.46 ▲5.75
Add New Post /wp-admin/post-new.php1,545 ▲2523.35 ▲0.27651.54 ▼29.6348.21 ▼7.94
Media Library /wp-admin/upload.php1,394 ▲34.21 ▲0.0198.57 ▼0.9541.22 ▼0.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/particles-backgrounds-addon-for-wpbakery-page-builder-lite/elements/addons/vc_particles_background_element.php:4

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: wpbakery, page builder

particles-backgrounds-addon-for-wpbakery-page-builder-lite/tba-particles.php 77% from 13 tests

This is the main PHP file of "Particles Backgrounds addon for WPBakery Page Builder Lite" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 170 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("particles-backgrounds-addon-for-wpbakery-page-builder-lite.php" instead of "tba-particles.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,590 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript96541782,745
PHP46160602
JSON100116
CSS219971
HTML15439
Markdown14017

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin