Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.62ms] Passed 4 tests
A check of server-side resources used by TrustMeUp WooCommerce Connector
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.02 ▲2.21 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.06 ▼2.58 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.88 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.95 ▼6.29 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.14 ▲0.57 |
Server storage [IO: ▲3.80MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for TrustMeUp WooCommerce Connector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲90 | 13.27 ▼0.95 | 2.57 ▲0.87 | 43.92 ▲1.99 |
Dashboard /wp-admin | 2,244 ▲38 | 5.84 ▲0.95 | 102.43 ▲4.16 | 39.14 ▼3.59 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.15 ▲0.15 | 35.77 ▲0.39 | 35.35 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.26 ▲5.59 | 608.96 ▼75.92 | 59.34 ▲1.54 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.23 ▲0.03 | 98.78 ▼6.34 | 45.69 ▼3.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6 in trustmeup-connector/assets to your readme.txt
trustmeup-connector/trustmeup.php 77% from 13 tests
The main PHP file in "TrustMeUp WooCommerce Connector" ver. 1.4.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("5.5" instead of "4.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("trustmeup-connector.php" instead of "trustmeup.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin15,891 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 7 | 0 | 0 | 11,013 |
PHP | 37 | 630 | 1,472 | 2,308 |
JavaScript | 24 | 113 | 237 | 1,104 |
PO File | 2 | 189 | 210 | 508 |
Sass | 1 | 101 | 20 | 459 |
CSS | 2 | 2 | 18 | 197 |
Markdown | 3 | 102 | 0 | 187 |
XML | 2 | 9 | 3 | 96 |
YAML | 1 | 0 | 0 | 12 |
SVG | 3 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 12.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 25 | 22.94% |
▷ Public methods | 94 | 86.24% |
▷ Protected methods | 11 | 10.09% |
▷ Private methods | 4 | 3.67% |
Functions | 65 | |
▷ Named functions | 56 | 86.15% |
▷ Anonymous functions | 9 | 13.85% |
Constants | 14 | |
▷ Global constants | 7 | 50.00% |
▷ Class constants | 7 | 50.00% |
▷ Public constants | 7 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/trustmeup-icon.png | 6.17KB | 2.58KB | ▼ 58.23% |