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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.26ms] Passed 4 tests
A check of server-side resources used by SJ Elementor Addon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 40.18 ▼3.57 |
Dashboard /wp-admin | 3.36 ▼0.03 | 51.44 ▼15.68 |
Posts /wp-admin/edit.php | 3.41 ▲0.01 | 48.12 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.01 | 82.92 ▼12.49 |
Media Library /wp-admin/upload.php | 3.28 ▲0.01 | 37.36 ▲0.84 |
Server storage [IO: ▲0.35MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SJ Elementor Addon
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲46 | 14.28 ▲0.03 | 1.94 ▼0.20 | 44.86 ▲1.53 |
Dashboard /wp-admin | 2,198 ▲18 | 5.65 ▼0.03 | 95.03 ▲4.57 | 44.24 ▲3.05 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.12 ▲0.11 | 34.04 ▼2.42 | 35.69 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.14 ▼0.28 | 685.65 ▲35.13 | 63.63 ▲10.61 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.29 ▲0.09 | 108.72 ▲1.23 | 46.27 ▲3.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sj-elementor-addon/modules/sjea-row-separator/includes/frontend.php
- > /wp-content/plugins/sj-elementor-addon/classes/class-sj-ea-admin-settings.php
- > /wp-content/plugins/sj-elementor-addon/modules/sjea-image-separator/includes/frontend.css.php
- 32× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/sj-elementor-addon/classes/class-sj-ea-module-scripts.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sj-elementor-addon/classes/class-sj-ea-loader.php:21
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sj-elementor-addon/modules/sjea-row-separator/includes/frontend.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sj-elementor-addon/modules/sjea-row-separator/includes/frontend.php on line 8
- > PHP Notice
Undefined variable: settings in wp-content/plugins/sj-elementor-addon/modules/sjea-image-separator/includes/frontend.css.php on line 2
- > PHP Notice
Undefined variable: settings in wp-content/plugins/sj-elementor-addon/modules/sjea-image-separator/includes/frontend.css.php on line 20
- > PHP Notice
Undefined variable: settings in wp-content/plugins/sj-elementor-addon/modules/sjea-row-separator/includes/frontend.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'SJEaAdminSettings' not found in wp-content/plugins/sj-elementor-addon/admin/view-connection.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sj-elementor-addon/modules/sjea-image-separator/includes/frontend.css.php on line 13
- > PHP Notice
Undefined variable: settings in wp-content/plugins/sj-elementor-addon/modules/sjea-row-separator/includes/frontend.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: elementor page builder, elementor addon, svg separator, row separator, subscribe form
sj-elementor-addon/sj-elementor-addon.php Passed 13 tests
The entry point to "SJ Elementor Addon" version 0.2.0 is a PHP file that has certain tags in its header comment area
38 characters long description:
SJ Elementor Addon is elementor addon.
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
Everything looks great! No dangerous files found in this plugin5,043 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 936 | 2,879 | 3,980 |
CSS | 4 | 100 | 50 | 631 |
JavaScript | 3 | 135 | 167 | 432 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 2.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 123 | |
▷ Abstract classes | 1 | 0.81% |
▷ Concrete classes | 122 | 99.19% |
▷ Final classes | 8 | 6.56% |
Methods | 248 | |
▷ Static methods | 63 | 25.40% |
▷ Public methods | 226 | 91.13% |
▷ Protected methods | 7 | 2.82% |
▷ Private methods | 15 | 6.05% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected