Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▲0.30ms] Passed 4 tests
Analyzing server-side resources used by Astra Widgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 40.43 ▼3.93 |
Dashboard /wp-admin | 3.82 ▲0.52 | 51.01 ▲0.60 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 51.60 ▲3.86 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 96.99 ▲9.81 |
Media Library /wp-admin/upload.php | 3.69 ▲0.45 | 38.65 ▲0.66 |
Server storage [IO: ▲3.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_astra-widget-list-icons |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_astra-widget-address |
theysaidso_admin_options |
db_upgraded |
widget_astra-widget-social-profiles |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Astra Widgets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▲0.00 | 1.67 ▼0.29 | 39.60 ▼6.03 |
Dashboard /wp-admin | 2,202 ▲25 | 5.66 ▲0.00 | 90.88 ▼15.84 | 41.46 ▼1.46 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.03 ▲0.02 | 41.19 ▲6.25 | 35.47 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 18.36 ▼4.74 | 610.60 ▼59.63 | 68.50 ▲7.07 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.24 ▲0.09 | 97.32 ▼16.54 | 41.31 ▼9.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_astra-widget-address
- widget_astra-widget-list-icons
- widget_astra-widget-social-profiles
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ASTRA_WIDGETS_DIR - assumed 'ASTRA_WIDGETS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/astra-widgets/classes/class-astra-widgets-loader.php on line 41
- > PHP Warning
require_once(ASTRA_WIDGETS_DIRclasses/class-astra-widgets-loader.php): failed to open stream: No such file or directory in wp-content/plugins/astra-widgets/classes/class-astra-widgets.php on line 41
- > PHP Fatal error
require_once(): Failed opening required 'ASTRA_WIDGETS_DIRclasses/class-astra-widgets-loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/astra-widgets/classes/class-astra-widgets.php on line 41
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/astra-widgets/classes/widgets/class-astra-widget-list-icons.php:16
- > PHP Fatal error
require_once(): Failed opening required 'ASTRA_WIDGETS_DIRclasses/class-astra-widgets-helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/astra-widgets/classes/class-astra-widgets-loader.php on line 41
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/astra-widgets/classes/widgets/class-astra-widget-address.php:16
- > PHP Warning
Use of undefined constant ASTRA_WIDGETS_DIR - assumed 'ASTRA_WIDGETS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/astra-widgets/classes/class-astra-widgets.php on line 41
- > PHP Warning
require_once(ASTRA_WIDGETS_DIRclasses/class-astra-widgets-helper.php): failed to open stream: No such file or directory in wp-content/plugins/astra-widgets/classes/class-astra-widgets-loader.php on line 41
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/astra-widgets/classes/widgets/class-astra-widget-social-profiles.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/astra-widgets/classes/class-astra-widgets-helper.php:57
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in astra-widgets/assets to your readme.txt
astra-widgets/astra-widgets.php Passed 13 tests
Analyzing the main PHP file in "Astra Widgets" version 1.2.12
64 characters long description:
The Fastest Way to Add More Widgets into Your WordPress Website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin61,423 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 1 | 0 | 57,765 |
PHP | 12 | 464 | 1,048 | 2,403 |
CSS | 23 | 78 | 82 | 778 |
JavaScript | 8 | 118 | 130 | 477 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 38.70 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 17 | 17.71% |
▷ Public methods | 78 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 18.75% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin