84% cb-full-responsive-slider

Code Review | CB Full Responsive Slider

WordPress plugin CB Full Responsive Slider scored 84% from 54 tests.

About plugin

  • Plugin page: cb-full-responsiv...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Oct 24, 2018
  • Number of updates: 15
  • Update frequency: every 76.9 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.38ms] Passed 4 tests

Analyzing server-side resources used by CB Full Responsive Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.43 ▲1.52
Dashboard /wp-admin3.33 ▲0.0244.85 ▼5.54
Posts /wp-admin/edit.php3.38 ▲0.0248.84 ▲4.10
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.47 ▲4.12
Media Library /wp-admin/upload.php3.25 ▲0.0237.13 ▲1.45
Sliders /wp-admin/edit.php?post_type=sliders3.2931.82
Add New Slider /wp-admin/post-new.php?post_type=sliders3.3647.58

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for CB Full Responsive Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲18013.63 ▼0.555.32 ▲3.4637.21 ▼9.72
Dashboard /wp-admin2,236 ▲485.88 ▲1.0397.83 ▼12.3836.04 ▼3.58
Posts /wp-admin/edit.php2,116 ▲271.97 ▼0.0440.71 ▲2.4238.93 ▲3.86
Add New Post /wp-admin/post-new.php1,562 ▲2522.99 ▲4.62616.83 ▼27.2659.67 ▼1.29
Media Library /wp-admin/upload.php1,415 ▲274.25 ▲0.05101.93 ▲6.0943.64 ▼1.66
Sliders /wp-admin/edit.php?post_type=sliders1,0891.9334.4933.80
Add New Slider /wp-admin/post-new.php?post_type=sliders2,2867.77171.9465.88

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cb-full-responsive-slider/index.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
Please fix the following attributes:
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt might help

cb-full-responsive-slider/index.php 92% from 13 tests

The main file in "CB Full Responsive Slider" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cb-full-responsive-slider.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin241 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS12711179
PHP1251058
JavaScript2084

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected