84% b-rad-rotator

Code Review | B-Rad Rotator

WordPress plugin B-Rad Rotator scored84%from 54 tests.

About plugin

  • Plugin page: b-rad-rotator
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.7
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: Apr 21, 2014
  • Number of updates: 16
  • Update frequency: every 4.2 days
  • Top authors: bferrara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,174 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by B-Rad Rotator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.24 ▲2.20
Dashboard /wp-admin3.34 ▲0.0043.74 ▼18.76
Posts /wp-admin/edit.php3.40 ▲0.0446.82 ▼2.30
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.72 ▼8.11
Media Library /wp-admin/upload.php3.27 ▲0.0436.98 ▲3.26

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

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

Browser metrics Passed 4 tests

B-Rad Rotator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.22 ▼1.041.69 ▼0.1844.79 ▲4.82
Dashboard /wp-admin2,209 ▲204.85 ▼0.0897.65 ▼9.2038.06 ▼3.11
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0541.02 ▲4.1535.47 ▼0.03
Add New Post /wp-admin/post-new.php6,251 ▲4,73726.02 ▲8.44868.12 ▲186.1959.86 ▲13.46
Media Library /wp-admin/upload.php1,382 ▼34.25 ▲0.0695.80 ▼2.4946.02 ▲1.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 10 options
    • widget_recent-posts
    • b_rad_rotator_skin_colour
    • theysaidso_admin_options
    • can_compress_scripts
    • b_rad_rotator_items_visible
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • b_rad_rotator_left_arrow
    • b_rad_rotator_right_arrow

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/b-rad-rotator/b-rad-rotator.php:37

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: thumbnail, rotator, thumbnail carousel, image carousel, image rotator...

b-rad-rotator/b-rad-rotator.php Passed 13 tests

This is the main PHP file of "B-Rad Rotator" 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
69 characters long description:
This plugin will generate rotators with custom thumbnails and actions

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin265 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14047178
CSS13087

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/red_left.png3.46KB1.47KB▼ 57.47%
img/green_right.png3.25KB1.49KB▼ 54.03%
img/green_left.png3.41KB1.48KB▼ 56.70%
img/red_right.png3.31KB1.49KB▼ 54.95%