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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.70ms] Passed 4 tests
Server-side resources used by We Divi Modules
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.30 ▼1.25 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.30 ▼4.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.44 ▼7.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.14 ▼2.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.35 ▼0.18 |
Server storage [IO: ▲2.65MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for We Divi Modules
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.17 ▼1.22 | 1.86 ▲0.01 | 42.82 ▼6.44 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.15 | 99.87 ▼8.91 | 39.41 ▼5.31 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.06 ▲0.05 | 36.71 ▲0.83 | 33.25 ▼2.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.37 ▲0.14 | 668.09 ▲18.57 | 51.30 ▼7.32 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.03 | 96.06 ▲0.95 | 41.76 ▲1.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/we-divi-modules/we-divi-modules.php:38
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/we-divi-modules/includes/modules/weSiteLinksItem/weSiteLinksItem.php:3
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/we-divi-modules/includes/WeDiviModules.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/we-divi-modules/includes/modules/weSiteLinks/weSiteLinks.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in we-divi-modules/assets to your readme.txt
we-divi-modules/we-divi-modules.php 92% from 13 tests
The main PHP script in "We Divi Modules" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected9,696 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 8,777 |
PHP | 5 | 37 | 61 | 656 |
PO File | 1 | 115 | 118 | 258 |
CSS | 3 | 0 | 0 | 3 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 1 | 8.33% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin