10% w2pe-beaverslider

Code Review | w2pe Beaver Slider

WordPress plugin w2pe Beaver Slider scored 10% from 53 tests.

About plugin

  • Plugin page: w2pe-beaverslider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.8.1
  • WordPress version: 5.8.1
  • First release: Feb 12, 2014
  • Latest release: Mar 8, 2014
  • Number of updates: 31
  • Update frequency: every 0.8 days
  • Top authors: wppluginexpert (100%)

Code review

53 tests

User reviews

7 reviews

Install metrics

10+ active / 1,711 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/w2pe-beaverslider/index.php+43
    Uncaught Error: Call to undefined function mysql_query() in /var/www/wordpress/wp-content/plugins/w2pe-beaverslider/index.php:43Stack trace:#0 /var/www/wordpress/wp-includes/class-wp-hook.php(303): w2pe_bslider_table()#1 /var/www/wordpress/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()#2 /var/www/wordpress/wp-includes/plugin.php(470): WP_Hook->do_action()#3 /var/www/wordpress/wp-admin/includes/plugin.php(698): do_action()#4 /var/www/wordpress/wp-admin/wp-api.php(368): activate_plugin()#5 /var/www/wordpress/wp-admin/wp-api.php(128): Potrivit_Wp_Api->pluginActivate()#6 /var/www/wordpress/wp-admin/wp-api.php(478): Potrivit_Wp_Api->_executeMethod()#7 /var/www/wordpress/wp-admin/wp-api.php(511): Potrivit_Wp_Api->run()#8 {main}thrown

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

This is a short check of server-side resources used by w2pe Beaver Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1133.72 ▲10.76
Dashboard /wp-admin3.06 ▲0.0041.44 ▼1.35
Posts /wp-admin/edit.php3.11 ▲0.0042.73 ▲1.95
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.45 ▼1,071.22
Media Library /wp-admin/upload.php3.00 ▼0.0128.86 ▼11.01

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: 1 new table, no new options
New tables
wp_bslider_images

Browser metrics Passed 4 tests

This is an overview of browser requirements for w2pe Beaver Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6916.18 ▲0.347.35 ▼3.4846.75 ▲0.00
Dashboard /wp-admin2,934 ▲845.96 ▲0.11132.43 ▲0.5099.03 ▼4.80
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0164.05 ▼4.8790.24 ▼10.87
Add New Post /wp-admin/post-new.php1,853 ▼018.91 ▼0.22363.08 ▼19.97108.53 ▲4.04
Media Library /wp-admin/upload.php1,772 ▼05.05 ▲0.06149.30 ▲2.29113.53 ▼2.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/w2pe-beaverslider/support.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/w2pe-beaverslider/bslider_images.php on line 45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/w2pe-beaverslider/index.php:19
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/w2pe-beaverslider/bslider_images.php on line 43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/w2pe-beaverslider/bslider_setting.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/w2pe-beaverslider/bslider_images.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/w2pe-beaverslider/slider.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/w2pe-beaverslider/bslider_effect.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === w2pe-beaverslider === )
The official readme.txt might help

w2pe-beaverslider/index.php 92% from 13 tests

The main PHP script in "w2pe Beaver Slider" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("w2pe-beaverslider.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin773 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP610436693
CSS281880

PHP code Passed 2 tests

This is a short overview 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.38
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/edit.png0.34KB0.39KB0.00%
images/menu.png0.97KB0.17KB▼ 82.38%
images/delete.png0.27KB0.37KB0.00%