Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.93ms] Passed 4 tests
An overview of server-side resources used by Arya License Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.81 ▲0.95 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.77 ▼16.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.14 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.74 ▼10.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.74 ▲2.25 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Arya License Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲39 | 14.12 ▼0.22 | 1.82 ▲0.04 | 45.80 ▲3.86 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.01 | 85.54 ▼4.04 | 40.44 ▲3.19 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.07 | 35.29 ▼4.60 | 32.51 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.59 ▲0.45 | 618.87 ▼20.59 | 67.16 ▼1.85 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.18 ▼0.01 | 98.77 ▼5.31 | 45.44 ▲2.68 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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)
Even though no errors were found, 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 fix the following items
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Storefront/Product.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/arya-license-manager/src/Admin/Emails/Suspended.php:13
- > PHP Fatal error
Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Admin/License.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/arya-license-manager/src/License/Order.php:13
- > PHP Fatal error
Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Storefront/Order.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Arya\\LicenseManager\\License\\AbstractActivation' not found in wp-content/plugins/arya-license-manager/src/License/RemoteActivation.php:13
- > PHP Fatal error
Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Storefront/Cart.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'WC_Query' not found in wp-content/plugins/arya-license-manager/src/Storefront/Query.php:13
- > PHP Fatal error
Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Storefront/License.php on line 10
- > PHP Fatal error
Trait 'Arya\\LicenseManager\\License\\Traits\\LicenseTrait' not found in wp-content/plugins/arya-license-manager/src/Admin/Product.php on line 18
- > 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)
Everything seems fine, but this is not an exhaustive test
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
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in arya-license-manager/assets to your readme.txt
arya-license-manager/arya-license-manager.php 92% from 13 tests
The main file in "Arya License Manager" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.6")
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
Everything looks great! No dangerous files found in this plugin4,367 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 1,175 | 2,073 | 3,774 |
CSS | 6 | 75 | 39 | 342 |
JavaScript | 8 | 52 | 32 | 167 |
JSON | 2 | 0 | 0 | 57 |
Markdown | 1 | 15 | 0 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 42 | |
▷ Abstract classes | 1 | 2.38% |
▷ Concrete classes | 41 | 97.62% |
▷ Final classes | 0 | 0.00% |
Methods | 256 | |
▷ Static methods | 26 | 10.16% |
▷ Public methods | 219 | 85.55% |
▷ Protected methods | 2 | 0.78% |
▷ Private methods | 35 | 13.67% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin