90% brightslider

Code Review | BrightSlider

WordPress plugin BrightSlider scored90%from 54 tests.

About plugin

  • Plugin page: brightslider
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4.1
  • WordPress version: 6.3.1
  • First release: Nov 6, 2014
  • Latest release: Feb 14, 2016
  • Number of updates: 10
  • Update frequency: every 46.7 days
  • Top authors: GalenGidman (60%)themebright (50%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,787 total downloads


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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.07ms] Passed 4 tests

Server-side resources used by BrightSlider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.71 ▲0.80
Dashboard /wp-admin3.42 ▲0.1250.78 ▼2.30
Posts /wp-admin/edit.php3.54 ▲0.1850.13 ▼1.39
Add New Post /wp-admin/post-new.php6.01 ▲0.1299.58 ▼9.38
Media Library /wp-admin/upload.php3.35 ▲0.1237.97 ▲5.00
All Slides /wp-admin/edit.php?post_type=bs_slide3.3939.12
Add New /wp-admin/post-new.php?post_type=bs_slide3.4150.10

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by BrightSlider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.25 ▼0.321.70 ▲0.0839.30 ▼1.49
Dashboard /wp-admin2,234 ▲605.64 ▼0.0692.75 ▲8.1342.51 ▲4.96
Posts /wp-admin/edit.php2,143 ▲431.98 ▼0.0439.90 ▼1.5637.23 ▼1.43
Add New Post /wp-admin/post-new.php1,561 ▲3523.25 ▲0.03646.76 ▼36.9363.21 ▲12.65
Media Library /wp-admin/upload.php1,436 ▲364.21 ▲0.0398.55 ▼8.9641.74 ▼5.04
All Slides /wp-admin/edit.php?post_type=bs_slide1,1041.9533.2432.50
Add New /wp-admin/post-new.php?post_type=bs_slide1,7003.6568.2234.64

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
No tags were detected

brightslider/brightslider.php Passed 13 tests

Analyzing the main PHP file in "BrightSlider" version 1.1.0
23 characters long description:
The ThemeBright slider.

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
No dangerous file extensions were detected821 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity114.00
▷ Minimum class complexity114.00
▷ Maximum class complexity114.00
Average method complexity8.06
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin