84% theme-blvd-widget-pack

Code Review | Theme Blvd Widget Pack

WordPress plugin Theme Blvd Widget Pack scored84%from 54 tests.

About plugin

  • Plugin page: theme-blvd-widget...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 4, 2012
  • Latest release: Apr 5, 2018
  • Number of updates: 25
  • Update frequency: every 82.1 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /54,715 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Theme Blvd Widget Pack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0249.37 ▲10.67
Dashboard /wp-admin3.32 ▲0.0252.93 ▲1.65
Posts /wp-admin/edit.php3.38 ▲0.0153.21 ▲0.10
Add New Post /wp-admin/post-new.php5.91 ▲0.0188.57 ▼14.26
Media Library /wp-admin/upload.php3.25 ▲0.0139.62 ▲3.15

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Theme Blvd Widget Pack: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.75 ▲0.312.97 ▲1.2456.40 ▲14.12
Dashboard /wp-admin2,209 ▲295.58 ▼0.0794.27 ▲6.2245.39 ▲3.48
Posts /wp-admin/edit.php2,114 ▲142.03 ▲0.0538.25 ▼2.3436.10 ▼2.63
Add New Post /wp-admin/post-new.php1,556 ▲2423.10 ▼0.06651.03 ▼39.6459.27 ▲2.64
Media Library /wp-admin/upload.php1,411 ▲144.19 ▼0.01115.20 ▼14.4548.76 ▼10.65

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theme-blvd-widget-pack/includes/tb-widget-horz-nav.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theme-blvd-widget-pack/includes/tb-widget-contact.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theme-blvd-widget-pack/includes/tb-widget-mini-post-list.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theme-blvd-widget-pack/includes/tb-widget-mini-post-grid.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/theme-blvd-widget-pack/tb-widget-pack.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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: themeblvd, widgets, jason bobich, theme blvd

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

The main file in "Theme Blvd Widget Pack" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("theme-blvd-widget-pack.php" instead of "tb-widget-pack.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 plugin616 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6104133616

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity13.50
▷ Minimum class complexity7.00
▷ Maximum class complexity20.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin