10% swiperevert-columns-on-mobile-for-wpbakery-builder

Code Review | Swipe/revert columns on mobile for WPBakery Builder

WordPress plugin Swipe/revert columns on mobile for WPBakery Builder scored10%from 54 tests.

About plugin

  • Plugin page: swiperevert-colum...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2022
  • Latest release: Dec 24, 2022
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: zanychew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /254 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/swiperevert-columns-on-mobile-for-wpbakery-builder/swipe-on-mobile.php+31
    Uncaught Error: Call to undefined function vc_add_param() in wp-content/plugins/swiperevert-columns-on-mobile-for-wpbakery-builder/swipe-on-mobile.php:31
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

A check of server-side resources used by Swipe/revert columns on mobile for WPBakery Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.88 ▲0.02
Dashboard /wp-admin3.31 ▲0.0042.97 ▼4.34
Posts /wp-admin/edit.php3.36 ▲0.0045.89 ▼7.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.08 ▼14.71
Media Library /wp-admin/upload.php3.23 ▲0.0035.21 ▲1.73

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Swipe/revert columns on mobile for WPBakery Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.071.79 ▼0.1342.20 ▼2.74
Dashboard /wp-admin2,203 ▲155.78 ▲0.90100.85 ▼5.9438.19 ▼5.90
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0241.95 ▲3.3738.78 ▲0.63
Add New Post /wp-admin/post-new.php1,533 ▲1422.97 ▼0.47620.37 ▼62.4348.59 ▼5.36
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0993.93 ▼19.4243.01 ▼5.57

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/swiperevert-columns-on-mobile-for-wpbakery-builder/swipe-on-mobile.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (How to use plugin) image missing
You can take inspiration from this readme.txt

swiperevert-columns-on-mobile-for-wpbakery-builder/swipe-on-mobile.php 92% from 13 tests

The main file in "Swipe/revert columns on mobile for WPBakery Builder" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("swiperevert-columns-on-mobile-for-wpbakery-builder.php" instead of "swipe-on-mobile.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin347 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP161221
CSS1016

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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 files were detected