Benchmarks
Plugin footprint 83% from 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.12MB] [CPU: ▼5.37ms] Passed 4 tests
A check of server-side resources used by Layouts for Divi
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 40.08 ▲4.96 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.38 ▼0.65 |
Posts /wp-admin/edit.php | 3.54 ▲0.17 | 46.71 ▼1.03 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 81.36 ▼16.32 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.89 ▼3.49 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Layouts for Divi
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.25 ▼0.10 | 1.70 ▲0.11 | 44.50 ▲6.21 |
Dashboard /wp-admin | 2,205 ▲38 | 5.59 ▼0.09 | 95.85 ▼3.03 | 43.39 ▲2.13 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.16 ▲0.13 | 35.00 ▼1.86 | 35.88 ▼4.13 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.06 ▲0.02 | 668.18 ▼7.73 | 56.83 ▲1.21 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.20 ▼0.04 | 106.81 ▲1.02 | 45.84 ▲0.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/layouts-for-divi/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-divi/includes/class-layout-importer.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/layouts-for-divi/includes/layouts.php:3
- > 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-divi/includes/class-layout-importer.php on line 17
- > PHP Warning
include(): Failed opening 'ABSPATHwp-admin/includes/image.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/layouts-for-divi/includes/class-layout-importer.php on line 17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: free divi layouts packs, divi layouts module, free divi layouts, free divi templates, divi layouts...
layouts-for-divi/layouts-for-divi.php Passed 13 tests
The main PHP file in "Layouts for Divi" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
Beautifully designed, Free templates, Hand-crafted for popular Divi page builder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,802 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 21 | 11 | 753 |
PHP | 4 | 116 | 160 | 640 |
JavaScript | 2 | 68 | 73 | 409 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 32.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 21 | 72.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 27.59% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/lfd-logo.png | 5.21KB | 2.49KB | ▼ 52.23% |
assets/images/layouts-for-divi.png | 1.14KB | 0.42KB | ▼ 62.97% |