Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.36ms] Passed 4 tests
An overview of server-side resources used by Rig Elements For Elementor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.47 ▼0.35 |
Dashboard /wp-admin | 3.32 ▲0.01 | 55.31 ▲2.35 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 55.80 ▲9.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.70 ▼30.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.51 ▼0.58 |
Server storage [IO: ▲7.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 899 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_rig_leads |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Rig Elements For Elementor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲46 | 13.25 ▼1.11 | 1.70 ▼0.16 | 44.53 ▲0.59 |
Dashboard /wp-admin | 2,241 ▲38 | 5.85 ▲0.96 | 104.96 ▼7.81 | 39.60 ▼0.41 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.02 ▼0.03 | 38.94 ▲2.42 | 33.68 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,557 ▲17 | 23.48 ▲5.42 | 589.81 ▼92.60 | 56.56 ▼6.02 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.24 ▲0.02 | 110.94 ▼7.46 | 47.58 ▲0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_rig_leads
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/rig-elements/vendor/timber/timber/tests/assets/my-sidebar.php
- 381× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/rig-elements/vendor/twig/twig/src/Node/FlushNode.php:21
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rig-elements/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/rig-elements/vendor/twig/twig/src/Extension/ProfilerExtension.php:17
- > PHP Fatal error
Uncaught Error: Class 'Timber_UnitTestCase' not found in wp-content/plugins/rig-elements/vendor/timber/timber/tests/test-timber-image-resize.php:3
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/rig-elements/vendor/twig/twig/src/Node/Expression/Test/NullTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig_SimpleFunction' not found in wp-content/plugins/rig-elements/vendor/timber/timber/lib/Twig_Function.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Unary\\AbstractUnary' not found in wp-content/plugins/rig-elements/vendor/twig/twig/src/Node/Expression/Unary/NotUnary.php:17
- > PHP Fatal error
Uncaught Error: Class 'Timber_UnitTestCase' not found in wp-content/plugins/rig-elements/vendor/timber/timber/tests/test-timber-post-preview.php:3
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/rig-elements/vendor/twig/twig/src/Extension/EscaperExtension.php:18
- > PHP Fatal error
Uncaught Error: Class 'Timber_UnitTestCase' not found in wp-content/plugins/rig-elements/vendor/timber/timber/tests/test-timber-properties.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #2 (Leads)
rig-elements/rig-elements.php 92% from 13 tests
Analyzing the main PHP file in "Rig Elements For Elementor" version 1.0
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 213 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected52,185 lines of code in 842 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 681 | 9,693 | 11,901 | 45,202 |
Markdown | 46 | 1,388 | 0 | 3,385 |
JSON | 11 | 0 | 0 | 1,241 |
CSS | 5 | 133 | 99 | 664 |
YAML | 12 | 117 | 14 | 541 |
Twig | 61 | 43 | 0 | 325 |
Bourne Shell | 3 | 52 | 19 | 287 |
PO File | 3 | 78 | 101 | 234 |
XML | 9 | 19 | 51 | 189 |
SVG | 4 | 0 | 0 | 64 |
JavaScript | 6 | 27 | 57 | 43 |
reStructuredText | 1 | 8 | 5 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 44 | |
Interfaces | 19 | |
Traits | 0 | |
Classes | 644 | |
▷ Abstract classes | 14 | 2.17% |
▷ Concrete classes | 630 | 97.83% |
▷ Final classes | 53 | 8.41% |
Methods | 2,846 | |
▷ Static methods | 315 | 11.07% |
▷ Public methods | 2,506 | 88.05% |
▷ Protected methods | 249 | 8.75% |
▷ Private methods | 91 | 3.20% |
Functions | 302 | |
▷ Named functions | 170 | 56.29% |
▷ Anonymous functions | 132 | 43.71% |
Constants | 83 | |
▷ Global constants | 17 | 20.48% |
▷ Class constants | 66 | 79.52% |
▷ Public constants | 65 | 98.48% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/timber/timber/tests/assets/cropper.png | 15.74KB | 0.31KB | ▼ 98.01% |
vendor/timber/timber/tests/assets/eastern-trans.png | 12.34KB | 7.39KB | ▼ 40.11% |
vendor/timber/timber/tests/assets/flag.png | 10.33KB | 4.00KB | ▼ 61.24% |