Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼145.69ms] Passed 4 tests
An overview of server-side resources used by LBK Elements for Flatsome
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 23.92 ▼0.45 |
Dashboard /wp-admin | 3.07 ▲0.01 | 32.45 ▼4.62 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 30.36 ▲0.23 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 70.02 ▼577.92 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 24.07 ▲2.39 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for LBK Elements for Flatsome
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲30 | 15.98 ▲0.30 | 6.55 ▲1.08 | 76.05 ▲1.11 |
Dashboard /wp-admin | 2,944 ▲48 | 6.12 ▼0.04 | 114.76 ▼19.82 | 169.81 ▼1.24 |
Posts /wp-admin/edit.php | 2,755 ▲12 | 3.24 ▼0.00 | 72.02 ▲7.32 | 151.25 ▲13.84 |
Add New Post /wp-admin/post-new.php | 3,745 ▲41 | 18.72 ▼0.14 | 428.37 ▼25.12 | 155.97 ▼15.32 |
Media Library /wp-admin/upload.php | 1,767 ▲18 | 5.50 ▼0.02 | 147.27 ▼3.76 | 181.68 ▼10.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/lbk-elements-for-flatsome/includes/templates/lbk_progess_line.php
- > /wp-content/plugins/lbk-elements-for-flatsome/lbk-flatsome-elements.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: flatsome-element, lbk
lbk-elements-for-flatsome/lbk-flatsome-elements.php 69% from 13 tests
Analyzing the main PHP file in "LBK Elements for Flatsome" version 1.1.2
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lbk-elements-for-flatsome.php" instead of "lbk-flatsome-elements.php")
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Requires at least: Required version must be the same as the one declared in readme.txt ("1.0" instead of "1.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,270 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 159 | 241 | 1,270 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 16 | |
▷ Static methods | 6 | 37.50% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 25.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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