Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼0.03ms] Passed 4 tests
This is a short check of server-side resources used by TrustProfile and reviews for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 42.95 ▲7.63 |
Dashboard /wp-admin | 3.58 ▲0.28 | 50.72 ▲0.91 |
Posts /wp-admin/edit.php | 3.64 ▲0.27 | 52.98 ▲1.96 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 89.06 ▼2.11 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 39.61 ▼0.88 |
TrustProfile /wp-admin/options-general.php?page=trustprofile | 3.50 | 37.31 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_trustprofile_invite_error |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
trustprofile_last_notice_version |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for TrustProfile and reviews for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲52 | 14.34 ▼0.37 | 1.83 ▲0.34 | 42.58 ▲3.20 |
Dashboard /wp-admin | 2,204 ▲29 | 5.62 ▲0.00 | 91.95 ▼17.13 | 40.61 ▼2.56 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 1.99 ▲0.02 | 38.63 ▼0.93 | 36.50 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.01 ▼0.13 | 638.97 ▲37.98 | 50.72 ▼5.08 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▲0.01 | 95.69 ▼5.45 | 45.89 ▲0.44 |
TrustProfile /wp-admin/options-general.php?page=trustprofile | 1,104 | 1.91 | 29.34 | 31.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_trustprofile_invite_error
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- trustprofile_last_notice_version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function getDashboardDomain() on null in wp-content/plugins/trustprofile/common/templates/sidebar.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 2
- > PHP Notice
Undefined variable: plugin in wp-content/plugins/trustprofile/common/templates/sidebar.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function Valued\\WordPress\\register_activation_hook() in wp-content/plugins/trustprofile/common/src/BasePlugin.php:36
- > PHP Fatal error
Uncaught Error: Call to a member function getName() on null in wp-content/plugins/trustprofile/common/templates/options.php:8
- > PHP Notice
Undefined variable: details in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 2
- > PHP Notice
Undefined variable: plugin in wp-content/plugins/trustprofile/common/templates/options.php on line 8
- > PHP Notice
Undefined variable: details in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/trustprofile/common/templates/woocommerce_review_sync_status.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: profile, trust, sidebar, trustprofile, reviews
trustprofile/trustprofile.php Passed 13 tests
The main PHP file in "TrustProfile and reviews for WordPress" ver. 3.31 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
Collect reviews and earn trust badges to show on your webshop. Don't keep losing revenue. Show you can be trusted!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,950 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 221 | 31 | 1,597 |
PO File | 2 | 105 | 220 | 347 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 2 | 1.87% |
▷ Public methods | 63 | 58.88% |
▷ Protected methods | 2 | 1.87% |
▷ Private methods | 42 | 39.25% |
Functions | 12 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 12 | 100.00% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 7 | 87.50% |
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 files were detected