Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼13.65MB] [CPU: ▼2,836,101.13ms] Passed 4 tests
A check of server-side resources used by Elements For Elementor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▼54.69 | 38.87 ▼11,344,389.06 |
Dashboard /wp-admin | 3.39 ▲0.04 | 52.75 ▼1.25 |
Posts /wp-admin/edit.php | 3.50 ▲0.10 | 49.61 ▼3.61 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.04 | 90.91 ▼9.16 |
Media Library /wp-admin/upload.php | 3.31 ▲0.03 | 38.13 ▼2.67 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Elements For Elementor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲22 | 14.34 ▼0.22 | 1.80 ▲0.03 | 38.70 ▼2.39 |
Dashboard /wp-admin | 2,212 ▲35 | 5.62 ▼0.01 | 90.03 ▼6.32 | 40.24 ▼7.65 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 1.98 ▼0.03 | 35.16 ▼6.27 | 34.44 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.04 ▼0.23 | 693.02 ▼16.07 | 62.18 ▼2.24 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.19 ▲0.01 | 97.51 ▼8.41 | 48.02 ▲0.41 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 67× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/nd-elements/widgets/woogrid/layout/layout-1.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/nd-elements/widgets/woocart/layout/layout-1.php:16
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/nd-elements/widgets/postgrid/layout/layout-2.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/nd-elements/widgets/woogrid/layout/layout-4.php:7
- > PHP Notice
Undefined variable: the_query in wp-content/plugins/nd-elements/widgets/postgrid/layout/layout-4.php on line 8
- > PHP Notice
Undefined variable: list_title in wp-content/plugins/nd-elements/widgets/list/layout/layout-1.php on line 8
- > PHP Notice
Undefined variable: the_query in wp-content/plugins/nd-elements/widgets/woogrid/layout/layout-3.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/nd-elements/widgets/postgrid/index.php:5
- > PHP Notice
Undefined variable: nd_elements_image_after in wp-content/plugins/nd-elements/widgets/beforeafter/layout/layout-1.php on line 23
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/nd-elements/widgets/postgrid/layout/layout-7.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: shortcodes, framework, prices, team, testimonials...
nd-elements/nd-elements.php Passed 13 tests
The main file in "Elements For Elementor" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
The plugin adds some useful Elementor components that can be integrated very easily on your own theme.
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 detected4,126 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,171 | 261 | 3,735 |
CSS | 1 | 109 | 27 | 249 |
SVG | 2 | 1 | 2 | 123 |
JavaScript | 2 | 10 | 3 | 19 |
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.15 |
Average class complexity | 4.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 68 | |
▷ Static methods | 1 | 1.47% |
▷ Public methods | 48 | 70.59% |
▷ Protected methods | 20 | 29.41% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widgets/postgrid/layout/img/icon-link.png | 1.61KB | 1.91KB | 0.00% |
widgets/woogrid/img/icon-link.png | 1.61KB | 1.91KB | 0.00% |
widgets/postgrid/layout/img/comment-icon-grey-2.png | 1.71KB | 1.92KB | 0.00% |
widgets/postgrid/layout/img/comment-icon.png | 1.39KB | 1.55KB | 0.00% |
widgets/woogrid/img/comment-icon.png | 1.39KB | 1.55KB | 0.00% |