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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.08ms] Passed 4 tests
A check of server-side resources used by hero for elementor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.71 ▼1.92 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.64 ▼5.26 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.16 ▼4.60 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.61 ▼10.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.25 ▼3.48 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for hero for elementor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.28 ▼1.04 | 4.07 ▲2.24 | 40.14 ▼4.94 |
Dashboard /wp-admin | 2,221 ▲33 | 5.84 ▲0.99 | 98.78 ▼14.45 | 40.31 ▼1.67 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.04 ▼0.08 | 35.25 ▼3.97 | 34.61 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,527 ▼15 | 17.73 ▼0.49 | 662.21 ▲51.28 | 64.08 ▲14.18 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.15 ▼0.12 | 96.39 ▼5.55 | 41.37 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function hero_for_elementor\\add_action() in wp-content/plugins/hero-section-for-elementor/plugin.php:117
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
hero-section-for-elementor/heros-for-elementor.php 85% from 13 tests
The principal PHP file in "hero for elementor" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("hero-section-for-elementor.php" instead of "heros-for-elementor.php")
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
Everything looks great! No dangerous files found in this plugin3,498 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 465 | 22 | 2,874 |
PHP | 6 | 122 | 177 | 617 |
JavaScript | 1 | 2 | 2 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 23 | 79.31% |
▷ Protected methods | 6 | 20.69% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/polygon.png | 0.88KB | 0.48KB | ▼ 45.28% |
assets/images/dot_circle.png | 44.36KB | 41.42KB | ▼ 6.61% |