Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.67ms] Passed 4 tests
Analyzing server-side resources used by Widgets for Alibaba Reviews
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.25 ▲5.00 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.36 ▲2.52 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.53 ▲2.40 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 77.89 ▼10.52 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.03 ▲2.91 |
Server storage [IO: ▲3.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 131 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_trustindex_alibaba_reviews |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
trustindex-alibaba-active |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
trustindex-alibaba-version |
Browser metrics Passed 4 tests
Checking browser requirements for Widgets for Alibaba Reviews
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲47 | 14.26 ▼0.01 | 1.69 ▼0.02 | 42.91 ▼0.96 |
Dashboard /wp-admin | 2,214 ▲34 | 5.66 ▲0.06 | 93.12 ▲4.74 | 92.44 ▲49.88 |
Posts /wp-admin/edit.php | 2,119 ▲22 | 2.00 ▼0.01 | 36.37 ▼3.52 | 35.19 ▲1.31 |
Add New Post /wp-admin/post-new.php | 6,379 ▲4,852 | 27.67 ▲4.44 | 914.07 ▲271.43 | 38.15 ▼12.67 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.22 ▲0.06 | 98.06 ▼2.42 | 79.07 ▲35.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 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
Please fix the following items
- 11× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/widgets-for-alibaba-reviews/tabs/setup_trustindex.php
- > /wp-content/plugins/widgets-for-alibaba-reviews/tabs/setup_no_reg_header.php
- > /wp-content/plugins/widgets-for-alibaba-reviews/trustindex-alibaba-widget.class.php
- > /wp-content/plugins/widgets-for-alibaba-reviews/tabs/advanced.php
- > /wp-content/plugins/widgets-for-alibaba-reviews/settings.php
- > /wp-content/plugins/widgets-for-alibaba-reviews/tabs/my_reviews.php
- > /wp-content/plugins/widgets-for-alibaba-reviews/tabs/rate.php
- > /wp-content/plugins/widgets-for-alibaba-reviews/tabs/setup_trustindex_join.php
- > /wp-content/plugins/widgets-for-alibaba-reviews/tabs/feature_request.php
- > /wp-content/plugins/widgets-for-alibaba-reviews/widgets-for-alibaba-reviews.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_alibaba' not found in wp-content/plugins/widgets-for-alibaba-reviews/tabs/_get_more_customers.php:1
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/widgets-for-alibaba-reviews/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-alibaba-reviews/include/uninstall.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/widgets-for-alibaba-reviews/include/troubleshooting.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgets-for-alibaba-reviews/include/activate.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_alibaba' not found in wp-content/plugins/widgets-for-alibaba-reviews/tabs/setup_no_reg_platform.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widgets-for-alibaba-reviews/uninstall.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widgets-for-alibaba-reviews/tabs/setup_no_reg.php:1
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin_alibaba' not found in wp-content/plugins/widgets-for-alibaba-reviews/tabs/_rate_us_feedback.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-alibaba-reviews/include/schema.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
widgets-for-alibaba-reviews/widgets-for-alibaba-reviews.php Passed 13 tests
Analyzing the main PHP file in "Widgets for Alibaba Reviews" version 11.1
116 characters long description:
Embed Alibaba reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Alibaba reviews.
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
There were no executable files found in this plugin10,475 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 43 | 38 | 9,281 |
JavaScript | 6 | 301 | 175 | 1,018 |
CSS | 4 | 13 | 0 | 63 |
SVG | 4 | 2 | 0 | 61 |
JSON | 1 | 0 | 0 | 52 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 127.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 348.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 6 | 6.12% |
▷ Public methods | 96 | 97.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.04% |
Functions | 17 | |
▷ Named functions | 8 | 47.06% |
▷ Anonymous functions | 9 | 52.94% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/yes.png | 1.91KB | 0.25KB | ▼ 87.08% |
static/img/trustindex-sign-logo.png | 3.34KB | 0.59KB | ▼ 82.47% |
static/img/no.png | 1.92KB | 0.28KB | ▼ 85.53% |
static/img/platforms.png | 10.24KB | 4.08KB | ▼ 60.12% |