Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.58ms] Passed 4 tests
This is a short check of server-side resources used by Rokt Ecommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.16 ▼3.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.00 ▼5.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.41 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.65 ▲0.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.17 ▼2.86 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rokt Ecommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.69 ▲0.29 | 1.79 ▲0.22 | 43.26 ▼1.02 |
Dashboard /wp-admin | 2,201 ▲24 | 5.63 ▲0.01 | 96.07 ▲1.40 | 45.32 ▼4.06 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 2.00 ▲0.02 | 39.42 ▼0.65 | 35.45 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 23.06 ▲4.95 | 630.19 ▲9.74 | 58.73 ▼13.23 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.20 ▲0.04 | 102.55 ▲0.04 | 44.88 ▲1.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/rokt-ecommerce/src/Includes/Helper.php+54
Use of undefined constant ROKT_ECOMMERCE_PLUGIN_FILE - assumed 'ROKT_ECOMMERCE_PLUGIN_FILE' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: ecommerce, ads, checkout
rokt-ecommerce/rokt-ecommerce.php 92% from 13 tests
The principal PHP file in "Rokt Ecommerce" v. 1.1.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,002 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 365 | 420 | 1,486 |
SVG | 8 | 0 | 5 | 449 |
CSS | 1 | 0 | 0 | 61 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 28 | 25.23% |
▷ Public methods | 89 | 80.18% |
▷ Protected methods | 2 | 1.80% |
▷ Private methods | 20 | 18.02% |
Functions | 10 | |
▷ Named functions | 2 | 20.00% |
▷ Anonymous functions | 8 | 80.00% |
Constants | 17 | |
▷ Global constants | 5 | 29.41% |
▷ Class constants | 12 | 70.59% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin