84% theme-blvd-layout-builder

Code Review | Theme Blvd Layout Builder

WordPress plugin Theme Blvd Layout Builder scored84%from 54 tests.

About plugin

  • Plugin page: theme-blvd-layout...
  • Plugin version: 2.3.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 4, 2012
  • Latest release: Jan 24, 2019
  • Number of updates: 207
  • Update frequency: every 11.3 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /161,390 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.50ms] Passed 4 tests

This is a short check of server-side resources used by Theme Blvd Layout Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.89 ▲0.17
Dashboard /wp-admin3.49 ▲0.1851.51 ▼0.22
Posts /wp-admin/edit.php3.60 ▲0.2452.00 ▼3.00
Add New Post /wp-admin/post-new.php6.07 ▲0.1887.49 ▼10.93
Media Library /wp-admin/upload.php3.41 ▲0.1842.79 ▲2.00

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Theme Blvd Layout Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.38 ▼0.171.71 ▼0.1248.14 ▲3.42
Dashboard /wp-admin2,225 ▲455.67 ▲0.0294.54 ▲2.5443.70 ▲2.59
Posts /wp-admin/edit.php2,130 ▲272.18 ▲0.2141.02 ▲0.1938.54 ▲4.25
Add New Post /wp-admin/post-new.php1,553 ▲1317.84 ▼5.33685.39 ▲34.4661.62 ▲6.93
Media Library /wp-admin/upload.php1,427 ▲244.26 ▲0.03101.28 ▼1.8641.55 ▼3.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/theme-blvd-layout-builder/inc/admin/export-layout.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/theme-blvd-layout-builder/tb-builder.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Theme_Blvd_Export' not found in wp-content/plugins/theme-blvd-layout-builder/inc/admin/class-tb-export-layout.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: theme blvd, layouts, builder, jason bobich, homepage...

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

The entry point to "Theme Blvd Layout Builder" version 2.3.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("theme-blvd-layout-builder.php" instead of "tb-builder.php")

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
Success! There were no dangerous files found in this plugin16,195 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP152,4172,40811,972
XML19001,435
JavaScript43083151,406
CSS256651,382

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity73.60
▷ Minimum class complexity1.00
▷ Maximum class complexity465.00
Average method complexity6.58
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods130
▷ Static methods43.08%
▷ Public methods12092.31%
▷ Protected methods10.77%
▷ Private methods96.92%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
39 PNG files occupy 0.38MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/admin/sample/assets/arcadian.png28.04KB11.55KB▼ 58.79%
inc/admin/sample/assets/dribbble-200x91.png12.46KB4.70KB▼ 62.31%
inc/admin/sample/assets/wordpress-200x91.png4.48KB3.27KB▼ 27.01%
inc/admin/sample/assets/themeblvd.png55.26KB21.76KB▼ 60.62%
inc/admin/sample/legacy/sample-webtreats.png2.97KB2.07KB▼ 30.35%