84% theme-blvd-sliders

Code Review | Theme Blvd Sliders

WordPress plugin Theme Blvd Sliders scored84%from 54 tests.

About plugin

  • Plugin page: theme-blvd-sliders
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 6, 2012
  • Latest release: May 20, 2016
  • Number of updates: 43
  • Update frequency: every 31.8 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /55,600 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.02MB] [CPU: ▼8.20ms] Passed 4 tests

This is a short check of server-side resources used by Theme Blvd Sliders
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.32 ▲1.05
Dashboard /wp-admin3.34 ▼0.0146.94 ▼19.70
Posts /wp-admin/edit.php3.39 ▲0.0344.76 ▲0.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.23 ▼14.26
Media Library /wp-admin/upload.php3.26 ▲0.0335.90 ▲5.94

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Theme Blvd Sliders
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.25 ▼1.131.75 ▼0.0043.30 ▲0.71
Dashboard /wp-admin2,221 ▲334.80 ▼0.14102.11 ▼14.8639.36 ▼6.22
Posts /wp-admin/edit.php2,103 ▲142.00 ▼0.0338.35 ▲4.1234.90 ▼1.06
Add New Post /wp-admin/post-new.php1,548 ▲2923.33 ▲0.16594.88 ▼39.0354.01 ▼6.45
Media Library /wp-admin/upload.php1,400 ▲94.23 ▲0.0197.68 ▼5.0643.16 ▼2.19

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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)
Even though no errors were found, 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
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 plugins_url() in wp-content/plugins/theme-blvd-sliders/tb-sliders.php:30

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Manage your custom sliders.), #2 (Add a new custom slider.), #3 (Edit a custom slider with the Sliders interface.)
The official readme.txt is a good inspiration

theme-blvd-sliders/tb-sliders.php 92% from 13 tests

The main file in "Theme Blvd Sliders" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("theme-blvd-sliders.php" instead of "tb-sliders.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,966 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP75568202,274
JavaScript27181433
CSS21015259

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity53.67
▷ Minimum class complexity19.00
▷ Maximum class complexity90.00
Average method complexity6.10
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods13.23%
▷ Public methods3096.77%
▷ Protected methods00.00%
▷ Private methods13.23%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin