Benchmarks
Plugin footprint 82% 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: ▲3.56MB] [CPU: ▲4.93ms] Passed 4 tests
A check of server-side resources used by Awesome Studio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.50 ▲4.03 | 70.71 ▲28.18 |
Dashboard /wp-admin | 7.59 ▲4.29 | 80.36 ▲30.89 |
Posts /wp-admin/edit.php | 5.73 ▲2.37 | 35.23 ▼17.42 |
Add New Post /wp-admin/post-new.php | 9.45 ▲3.56 | 92.58 ▼21.92 |
Media Library /wp-admin/upload.php | 7.51 ▲4.28 | 79.77 ▲38.73 |
Install Module /wp-admin/admin.php?page=install-awesome-module | 7.42 | 64.44 |
Get Module Shortcode /wp-admin/admin.php?page=awesome-get-shortcode | 7.42 | 63.17 |
App Starter Packs /wp-admin/admin.php?page=app-starter-pack | 7.42 | 64.08 |
Set Module Trigger /wp-admin/admin.php?page=awesome-set-trigger | 7.42 | 61.34 |
Add Device Token /wp-admin/post-new.php?post_type=device_tokens | 7.74 | 86.04 |
Install App /wp-admin/admin.php?page=install-app | 7.42 | 65.51 |
Reports /wp-admin/edit.php?post_type=book&page=book-report | 7.31 | 59.25 |
Device Token /wp-admin/edit.php?post_type=device_tokens | 7.56 | 68.94 |
Server storage [IO: ▲44.72MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Try to limit filesystem usage to 25MB (currently using 44.72MB)
Filesystem: 8,724 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
aw2_trigger_when_children |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Awesome Studio
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲223 | 14.69 ▲0.01 | 2.15 ▲0.04 | 40.69 ▼5.23 |
Dashboard /wp-admin | 2,339 ▲162 | 4.95 ▼0.60 | 95.88 ▲4.55 | 39.65 ▼4.10 |
Posts /wp-admin/edit.php | 2,263 ▲163 | 2.51 ▲0.48 | 39.88 ▲2.88 | 31.06 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,606 ▲75 | 22.25 ▼0.98 | 622.06 ▼67.47 | 33.12 ▼18.63 |
Media Library /wp-admin/upload.php | 1,547 ▲147 | 4.48 ▲0.25 | 105.22 ▼15.41 | 43.48 ▼6.00 |
Install Module /wp-admin/admin.php?page=install-awesome-module | 941 | 2.16 | 32.68 | 24.06 |
Get Module Shortcode /wp-admin/admin.php?page=awesome-get-shortcode | 941 | 2.15 | 29.61 | 20.86 |
App Starter Packs /wp-admin/admin.php?page=app-starter-pack | 941 | 2.17 | 31.29 | 24.25 |
Set Module Trigger /wp-admin/admin.php?page=awesome-set-trigger | 941 | 2.15 | 30.37 | 22.54 |
Add Device Token /wp-admin/post-new.php?post_type=device_tokens | 2,506 | 8.16 | 201.51 | 69.90 |
Install App /wp-admin/admin.php?page=install-app | 941 | 2.15 | 28.10 | 22.76 |
Reports /wp-admin/edit.php?post_type=book&page=book-report | 28 | 0.44 | 0.06 | 3.74 |
Device Token /wp-admin/edit.php?post_type=device_tokens | 1,235 | 2.39 | 39.79 | 28.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- aw2_trigger_when_children
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=install-awesome-module
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'aw2_module_install_awesome_module_callback' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=awesome-get-shortcode
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'aw2_module_get_shortcode' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=app-starter-pack
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'aw2_app_starter_pack_callback' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=awesome-set-trigger
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'aw2_module_set_trigger' not found or invalid function name
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=device_tokens
- > Notice in wp-content/plugins/awesome-studio/shortcodes/includes/triggers.php+492
Undefined variable: custom_sizes
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=device_tokens
- > Warning in wp-content/plugins/awesome-studio/shortcodes/includes/triggers.php+492
array_merge(): Expected parameter 2 to be an array, null given
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=device_tokens
- > Warning in wp-includes/media-template.php+1180
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=install-app
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'aw2_install_app_callback' not found or invalid function name
SRP 0% 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 fix the following items
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/awesome-studio/monoframe/razorpay-php/libs/Requests-1.6.1/examples/multiple.php
- > /wp-content/plugins/awesome-studio/monoframe/editor/gmet-content.php
- > /wp-content/plugins/awesome-studio/monoframe/razorpay-php/libs/Requests-1.6.1/examples/basic-auth.php
- > /wp-content/plugins/awesome-studio/monoframe/razorpay-php/libs/Requests-1.6.1/bin/create_pear_package.php
- > /wp-content/plugins/awesome-studio/monoframe/razorpay-php/libs/Requests-1.6.1/examples/get.php
- > /wp-content/plugins/awesome-studio/monoframe/razorpay-php/libs/Requests-1.6.1/examples/session.php
- > /wp-content/plugins/awesome-studio/monoframe/tcpdf/tools/tcpdf_addfont.php
- > /wp-content/plugins/awesome-studio/monoframe/razorpay-php/libs/Requests-1.6.1/examples/post.php
- > /wp-content/plugins/awesome-studio/monoframe/iptocountry/ip_files/unknown.php
- > /wp-content/plugins/awesome-studio/monoframe/hybridauth/index.php
- 4095× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/awesome-studio/monoframe/apis/g-suite/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QuerySchedule.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/awesome-studio/monoframe/apis/g-suite/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/OperationMetadataV1Beta2.php:18
- > PHP Fatal error
Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/awesome-studio/monoframe/apis/aweber/aweber_entry.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-studio/monoframe/zoho-crm.php:96
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/awesome-studio/monoframe/apis/g-suite/vendor/google/apiclient-services/src/Google/Service/Datastore/KindExpression.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/awesome-studio/monoframe/apis/g-suite/vendor/google/apiclient-services/src/Google/Service/AdSenseHost/Report.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/awesome-studio/monoframe/apis/g-suite/vendor/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedList.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/awesome-studio/monoframe/apis/g-suite/vendor/google/apiclient-services/src/Google/Service/Script/Operation.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/awesome-studio/monoframe/apis/g-suite/vendor/google/apiclient-services/src/Google/Service/Storage/Policy.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/awesome-studio/monoframe/apis/g-suite/vendor/google/apiclient-services/src/Google/Service/Slides/Placeholder.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=book&page=book-report
- > Network (severe)
wp-admin/edit.php?post_type=book&page=book-report - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
awesome-studio/awesome-ui-2.php 92% from 13 tests
"Awesome Studio" version 2.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("awesome-studio.php" instead of "awesome-ui-2.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin644,338 lines of code in 8,520 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8,118 | 51,970 | 310,072 | 611,218 |
JavaScript | 254 | 2,299 | 1,361 | 12,871 |
CSS | 26 | 1,420 | 1,261 | 10,471 |
Markdown | 65 | 2,107 | 0 | 6,377 |
JSON | 23 | 0 | 0 | 1,394 |
Sass | 14 | 279 | 24 | 1,273 |
PO File | 1 | 115 | 149 | 263 |
HTML | 4 | 18 | 3 | 97 |
make | 2 | 31 | 15 | 90 |
XML | 5 | 5 | 0 | 88 |
Bourne Shell | 2 | 34 | 1 | 79 |
YAML | 4 | 9 | 0 | 61 |
Perl | 1 | 16 | 5 | 31 |
Python | 1 | 10 | 2 | 25 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,349)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,349.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 55 | |
Interfaces | 46 | |
Traits | 6 | |
Classes | 7,898 | |
▷ Abstract classes | 57 | 0.72% |
▷ Concrete classes | 7,841 | 99.28% |
▷ Final classes | 9 | 0.11% |
Methods | 60,199 | |
▷ Static methods | 1,489 | 2.47% |
▷ Public methods | 58,384 | 96.98% |
▷ Protected methods | 841 | 1.40% |
▷ Private methods | 974 | 1.62% |
Functions | 583 | |
▷ Named functions | 376 | 64.49% |
▷ Anonymous functions | 207 | 35.51% |
Constants | 1,938 | |
▷ Global constants | 295 | 15.22% |
▷ Class constants | 1,643 | 84.78% |
▷ Public constants | 1,643 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
shortcodes/css/info.png | 1.12KB | 0.24KB | ▼ 78.23% |
monoframe/cmb/core/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
monoframe/cmb/extras/date-range-field/assets/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
monoframe/cmb/core/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
monoframe/module-distribution/css/info.png | 1.12KB | 0.24KB | ▼ 78.23% |