84% layoutboxx

Code Review | LayoutBoxx

WordPress plugin LayoutBoxx scored84%from 54 tests.

About plugin

  • Plugin page: layoutboxx
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Feb 22, 2019
  • Latest release: Dec 15, 2020
  • Number of updates: 9
  • Update frequency: every 73.6 days
  • Top authors: layoutboxx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by LayoutBoxx
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.08 ▼3.29
Dashboard /wp-admin3.31 ▲0.0144.80 ▼5.79
Posts /wp-admin/edit.php3.36 ▲0.0142.43 ▼5.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.21 ▼19.23
Media Library /wp-admin/upload.php3.24 ▲0.0134.72 ▼1.35

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for LayoutBoxx
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.40 ▼0.211.77 ▼0.0244.39 ▲1.06
Dashboard /wp-admin2,222 ▲374.96 ▼0.90101.33 ▼5.8839.73 ▼0.43
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0033.33 ▼7.0737.24 ▲0.93
Add New Post /wp-admin/post-new.php1,546 ▲423.13 ▲4.68683.03 ▲14.6460.80 ▲4.94
Media Library /wp-admin/upload.php1,398 ▲74.19 ▼0.0293.74 ▼11.7740.17 ▼4.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/layoutboxx/admin-menu.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/layoutboxx/admin-menu.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/layoutboxx/templates/fullscreen.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/layoutboxx/templates/templates.php:112

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)
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: designer, layout, layoutboxx, fotobox, embed...

layoutboxx/layoutboxx.php Passed 13 tests

The main PHP file in "LayoutBoxx" ver. 0.3.1 adds more information about the plugin and also serves as the entry point for this plugin
90 characters long description:
This plugin is an easy way to integrate your LayoutBoxx Designer into your Wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin164 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45138164

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin