79% black-studio-homepage-builder

Code Review | Black Studio Homepage Builder for Genesis

WordPress plugin Black Studio Homepage Builder for Genesis scored79%from 54 tests.

About plugin

  • Plugin page: black-studio-home...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Jul 1, 2022
  • Number of updates: 14
  • Update frequency: every 172.5 days
  • Top authors: marcochiesi (78.57%)black-studio (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /19,112 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.00MB] [CPU: ▼3.11ms] Passed 4 tests

A check of server-side resources used by Black Studio Homepage Builder for Genesis
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.39 ▼4.05
Dashboard /wp-admin3.31 ▲0.0059.77 ▲8.04
Posts /wp-admin/edit.php3.36 ▲0.0047.92 ▼1.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.40 ▼8.82
Media Library /wp-admin/upload.php3.23 ▲0.0036.90 ▲2.17

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Black Studio Homepage Builder for Genesis
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.331.75 ▼0.0945.82 ▲3.53
Dashboard /wp-admin2,195 ▲155.55 ▼0.0783.31 ▼14.7237.91 ▼3.91
Posts /wp-admin/edit.php2,097 ▼61.97 ▼0.0435.26 ▼0.3831.88 ▼6.64
Add New Post /wp-admin/post-new.php1,526 ▼2322.99 ▲4.94690.75 ▲35.3066.09 ▼1.99
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.0597.39 ▼14.1242.73 ▼2.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/black-studio-homepage-builder/partials/public-style-html5.php
    • > /wp-content/plugins/black-studio-homepage-builder/partials/public-style-xhtml.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/black-studio-homepage-builder/partials/admin-settings.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/black-studio-homepage-builder/partials/admin-settings.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/black-studio-homepage-builder/partials/admin-settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_meta_boxes() in wp-content/plugins/black-studio-homepage-builder/partials/admin-footer.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: homepage, genesis, responsive, home page, front page...

black-studio-homepage-builder/black-studio-homepage-builder.php Passed 13 tests

"Black Studio Homepage Builder for Genesis" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Customize the home page of Genesis framework child themes using Page Builder by SiteOrigin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected216 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP640163170
PO File172946

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.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

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