Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/layout-engine/vendors/lesscss/lessc.inc.php+650
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.28ms] Passed 4 tests
Analyzing server-side resources used by Layout Engine
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.52 ▼2.28 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.76 ▲1.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.76 ▼8.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.14 ▼8.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.07 ▲1.72 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Layout Engine
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.03 | 1.85 ▲0.12 | 46.31 ▲1.23 |
Dashboard /wp-admin | 2,192 ▲12 | 5.55 ▼0.13 | 84.23 ▼5.95 | 42.77 ▲0.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.00 | 37.31 ▼1.38 | 36.83 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.12 ▼0.42 | 639.76 ▼75.66 | 55.83 ▼1.37 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.04 | 96.64 ▼8.52 | 46.89 ▼2.00 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/layout-engine/views/utilities.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/layout-engine/views/theme_layout.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/layout-engine/themes.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/layout-engine/blocks/block.loop.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/layout-engine/layout-engine.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/layout-engine/blocks/block.loop_comments.php:11
- > PHP Warning
Declaration of lessify::parse($str = NULL) should be compatible with lessc::parse($str = NULL, $initialVariables = NULL) in wp-content/plugins/layout-engine/vendors/lesscss/lessify.inc.php on line 366
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/layout-engine/blocks/block.shortcode.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/layout-engine/blocks/block.core.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/layout-engine/blocks/block.navigation.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== layout-engine ===
) - Screenshots: These screenshots do not have images: #1 (**Drag and drop** - Drag and drop any element of wordpress.), #2 (**Unlimited sidebars** - Define as many sidebars as you want, remove, re-order or edit them.), #3 (**Simplified widget administration** - Provide one click access to WP Widget administration, delete, replace or define new widget settings or pick any widget at certain position.)
layout-engine/layout-engine.php 92% from 13 tests
The main PHP file in "Layout Engine" ver. 1.0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)
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
No dangerous file extensions were detected6,726 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,354 | 1,385 | 5,621 |
JavaScript | 2 | 192 | 35 | 650 |
CSS | 1 | 95 | 29 | 435 |
JSON | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 47.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 280 | |
▷ Static methods | 90 | 32.14% |
▷ Public methods | 151 | 53.93% |
▷ Protected methods | 129 | 46.07% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.00KB | 22.20KB | ▼ 3.47% |
screenshot-3.png | 13.63KB | 12.78KB | ▼ 6.24% |
assets/icons/drag.png | 1.06KB | 0.18KB | ▼ 82.90% |
screenshot-2.png | 7.05KB | 6.12KB | ▼ 13.25% |