Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.15ms] Passed 4 tests
This is a short check of server-side resources used by ClearSale Total
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.49 ▼4.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.82 ▼15.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.56 ▲5.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 102.17 ▲2.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.51 ▼2.59 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cs_total_dadosextras |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by ClearSale Total
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.68 ▼0.59 | 4.42 ▲2.69 | 38.50 ▼0.58 |
Dashboard /wp-admin | 2,221 ▲18 | 4.85 ▼1.05 | 110.60 ▲4.40 | 42.29 ▼3.63 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.01 | 40.69 ▲3.26 | 36.00 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,534 ▲3 | 23.30 ▼0.19 | 677.73 ▲13.41 | 55.42 ▲2.57 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.00 | 128.96 ▲25.18 | 50.52 ▲4.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_cs_total_dadosextras
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/clearsale-total/admin/partials/clearsale-total-admin-display.php:19
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Please fix this invalid url: ""
clearsale-total/clearsale-total.php Passed 13 tests
The main file in "ClearSale Total" v. 3.0.19 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Integração da loja WooCommerce e a ClearSale Total. Segurança para suas vendas.
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
There were no executable files found in this plugin3,224 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 689 | 2,279 | 2,593 |
JavaScript | 2 | 49 | 11 | 336 |
Markdown | 1 | 53 | 0 | 156 |
PO File | 1 | 54 | 54 | 139 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 27.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 5.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 8 | 8.42% |
▷ Public methods | 87 | 91.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.42% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin