84% bamboo-layout

Code Review | Bamboo Layout

WordPress plugin Bamboo Layout scored84%from 54 tests.

About plugin

  • Plugin page: bamboo-layout
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Sep 18, 2016
  • Latest release: Mar 2, 2018
  • Number of updates: 8
  • Update frequency: every 66.4 days
  • Top authors: bamboosolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,363 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.02ms] Passed 4 tests

This is a short check of server-side resources used by Bamboo Layout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.39 ▲1.47
Dashboard /wp-admin3.31 ▲0.0146.63 ▼4.12
Posts /wp-admin/edit.php3.36 ▲0.0145.06 ▼9.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.43 ▼21.40
Media Library /wp-admin/upload.php3.24 ▲0.0134.88 ▼0.94

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Bamboo Layout
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,001 ▲21513.52 ▲0.3910.19 ▲5.3348.01 ▲8.19
Dashboard /wp-admin2,221 ▲184.84 ▲0.01112.08 ▲2.1442.50 ▼4.53
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0537.45 ▼1.2233.45 ▼6.22
Add New Post /wp-admin/post-new.php1,531 ▼123.28 ▼0.08615.26 ▼15.5750.00 ▼14.64
Media Library /wp-admin/upload.php1,403 ▲94.15 ▼0.1097.54 ▼1.3043.32 ▼1.32

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
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please 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/bamboo-layout/bamboo-layout.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: responsive, layout

bamboo-layout/bamboo-layout.php Passed 13 tests

The main file in "Bamboo Layout" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Provides a number of shortcodes to enable custom page layouts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin274 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
Sass1570191
PHP1301957
JavaScript2231025
CSS1011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin