Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/trustedsite/lib/Trustedsite.php+59
Undefined index: sitemap
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.19ms] Passed 4 tests
Analyzing server-side resources used by TrustedSite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.08 ▲1.69 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.50 ▼1.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.67 ▼5.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.84 ▼7.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.71 ▲0.84 |
TrustedSite /wp-admin/options-general.php?page=trustedsite-settings | 3.27 | 31.48 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
trustedsite_active |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
trustedsite_plugin_error |
trustedsite_robots_enable |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by TrustedSite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.28 ▼1.01 | 6.29 ▲4.51 | 43.35 ▼0.83 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼0.05 | 101.08 ▼9.95 | 37.97 ▼11.38 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.03 ▲0.05 | 34.15 ▼2.66 | 30.89 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 22.81 ▼0.51 | 658.83 ▼9.32 | 53.73 ▼3.56 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.20 ▼0.06 | 97.39 ▼0.96 | 42.01 ▼0.73 |
TrustedSite /wp-admin/options-general.php?page=trustedsite-settings | 1,317 | 5.27 | 110.42 | 33.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- trustedsite_plugin_error
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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)
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
trustedsite/trustedsite.php Passed 13 tests
This is the main PHP file of "TrustedSite" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
99 characters long description:
Display TrustedSite trustmarks on your website to increase visitor confidence and conversion rates.
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
No dangerous file extensions were detected1,233 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 118 | 11 | 581 |
JavaScript | 1 | 53 | 0 | 330 |
CSS | 2 | 0 | 3 | 322 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 26 | 100.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/preview-64-banner.png | 45.58KB | 14.69KB | ▼ 67.78% |
images/preview-64-engagement.png | 37.60KB | 11.07KB | ▼ 70.55% |
images/preview-64-sip.png | 33.65KB | 10.39KB | ▼ 69.13% |
images/preview-64-testimonials.png | 34.02KB | 10.83KB | ▼ 68.18% |
images/preview-64-floating.png | 45.19KB | 18.45KB | ▼ 59.17% |