Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.44MB] [CPU: ▲24.22ms] Passed 4 tests
A check of server-side resources used by Saoshyant Element
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 40.24 ▼0.04 |
Dashboard /wp-admin | 5.07 ▲1.76 | 76.16 ▲25.19 |
Posts /wp-admin/edit.php | 5.12 ▲1.76 | 84.31 ▲35.84 |
Add New Post /wp-admin/post-new.php | 7.63 ▲1.74 | 131.22 ▲35.88 |
Media Library /wp-admin/upload.php | 4.99 ▲1.76 | 72.27 ▲40.78 |
Server storage [IO: ▲7.85MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 406 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Saoshyant Element
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲164 | 13.70 ▼0.68 | 5.29 ▲3.64 | 38.64 ▼3.70 |
Dashboard /wp-admin | 2,219 ▲31 | 4.90 ▼0.01 | 109.33 ▲6.28 | 40.31 ▼1.21 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.06 ▲0.06 | 40.98 ▼0.32 | 36.05 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 18.53 ▼4.90 | 624.98 ▲5.50 | 55.05 ▲4.25 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.23 ▲0.05 | 96.65 ▼5.56 | 40.84 ▼3.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/saoshyant-element/assets/css/phpfonts/flaticonarrow.php
- 104× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include_once(SORSORAK_PATHadmin/includes/options-functions.php): failed to open stream: No such file or directory in wp-content/plugins/saoshyant-element/admin/index.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-element/admin/includes/perview-global.php:75
- > PHP Warning
Use of undefined constant SORSORAK_PATH - assumed 'SORSORAK_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/saoshyant-element/admin/index.php on line 26
- > PHP Warning
Use of undefined constant SORSORAK_PATH - assumed 'SORSORAK_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/saoshyant-element/admin/index.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saoshyant-element/inc/widget-sorsorak.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/saoshyant-element/admin/setting-options.php:4
- > PHP Warning
Use of undefined constant SAOSORAK_DIR - assumed 'SAOSORAK_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/saoshyant-element/assets/css/phpfonts/flaticonarrow.php on line 2
- > PHP Warning
include_once(SORSORAK_PATHadmin/slide-options.php): failed to open stream: No such file or directory in wp-content/plugins/saoshyant-element/admin/index.php on line 3
- > PHP Warning
include_once(SORSORAK_PATHadmin/includes/layer.php): failed to open stream: No such file or directory in wp-content/plugins/saoshyant-element/admin/index.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/saoshyant-element/layer/mini/position_size.php:7
- > PHP Warning
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: portfolio, post layout, staff member, custom post type, widget element...
saoshyant-element/saoshyant-element.php Passed 13 tests
The entry point to "Saoshyant Element" version 1.2 is a PHP file that has certain tags in its header comment area
107 characters long description:
این افزونه شامل انواع المنتها از جمله سرسرک اسلایدر میباشد
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin19,914 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 2,428 | 745 | 10,692 |
CSS | 29 | 788 | 177 | 4,935 |
JavaScript | 14 | 1,467 | 974 | 4,251 |
SVG | 1 | 0 | 0 | 20 |
JSON | 16 | 0 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 3 | 23.08% |
▷ Private methods | 0 | 0.00% |
Functions | 155 | |
▷ Named functions | 155 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
63 PNG files occupy 1.16MB with 1.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/image/demo.png | 15.95KB | 1.13KB | ▼ 92.90% |
admin/assets/image/template_add.png | 17.16KB | 1.90KB | ▼ 88.94% |
admin/assets/image/layer_bottom.png | 15.28KB | 0.12KB | ▼ 99.25% |
admin/assets/image/panel_cancel.png | 34.18KB | 8.75KB | ▼ 74.39% |
admin/assets/image/template_cancel.png | 34.18KB | 8.75KB | ▼ 74.39% |