Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.99ms] Passed 4 tests
Server-side resources used by Layouts for WPBakery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 34.23 ▼3.45 |
Dashboard /wp-admin | 3.41 ▲0.10 | 43.26 ▼7.14 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.51 ▲0.10 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 81.15 ▼5.46 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.47 ▲0.51 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Layouts for WPBakery: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.39 ▲0.04 | 1.63 ▼0.22 | 39.98 ▼0.83 |
Dashboard /wp-admin | 2,202 ▲28 | 5.56 ▼0.00 | 82.72 ▼5.76 | 37.47 ▼1.89 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.10 ▲0.12 | 36.16 ▼5.05 | 34.17 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,536 ▼11 | 23.31 ▼1.36 | 669.60 ▲42.39 | 51.91 ▼14.36 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.23 ▲0.04 | 98.09 ▲3.40 | 41.78 ▼1.86 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/layouts-for-wpbakery/includes/class-layout-importer.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/layouts-for-wpbakery/includes/layouts.php:3
- > PHP Warning
include(): Failed opening 'ABSPATHwp-admin/includes/image.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/layouts-for-wpbakery/includes/class-layout-importer.php on line 17
- > PHP Warning
include(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/layouts-for-wpbakery/includes/class-layout-importer.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/layouts-for-wpbakery/includes/class-layout-importer.php:26
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: readymade templates layout, wpbakery layouts module, wpbakery layout templates, free wpbakery layouts, wpbakery layouts...
layouts-for-wpbakery/layouts-for-wpbakery.php Passed 13 tests
"Layouts for WPBakery" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
Beautifully designed, Free templates, Handcrafted for popular WPBakery page builder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,715 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 24 | 11 | 752 |
PHP | 4 | 120 | 153 | 555 |
JavaScript | 2 | 69 | 73 | 408 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 23.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/layouts-for-wpbakery.png | 1.14KB | 0.42KB | ▼ 62.97% |
assets/images/lfw-logo.png | 5.21KB | 2.49KB | ▼ 52.23% |