Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.14ms] Passed 4 tests
Server-side resources used by Trustpilot Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.70 ▼1.22 |
Dashboard /wp-admin | 3.31 ▲0.00 | 54.87 ▼4.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.54 ▼0.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.05 ▼22.69 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.78 ▲2.06 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Trustpilot Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.75 ▼0.25 | 1.78 ▲0.02 | 44.04 ▲1.05 |
Dashboard /wp-admin | 2,206 ▲18 | 5.84 ▲0.92 | 105.76 ▼1.82 | 41.31 ▼5.62 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 35.05 ▼8.16 | 35.39 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.12 ▲4.55 | 722.63 ▲86.32 | 52.68 ▼5.28 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.15 ▼0.03 | 113.03 ▲9.09 | 46.30 ▼4.36 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/trustpilot-reviews/helper.php on line 3
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/trustpilot-reviews/helper.php on line 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/trustpilot-reviews/helper.php on line 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/trustpilot-reviews/review/Plugin.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/trustpilot-reviews/uninstall.php:3
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/trustpilot-reviews/review/Plugin.php on line 11
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/trustpilot-reviews/review/Plugin.php on line 11
- > PHP Warning
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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
trustpilot-reviews/wc_trustpilot.php 77% from 13 tests
The main file in "Trustpilot Reviews" v. 2.5.925 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("trustpilot-reviews.php" instead of "wc_trustpilot.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Requires at least: The required version number must match the one declared in readme.txt ("3.5.1" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,474 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 246 | 287 | 2,047 |
JavaScript | 8 | 38 | 14 | 388 |
CSS | 2 | 5 | 0 | 24 |
SVG | 1 | 0 | 1 | 15 |
PHP code Passed 2 tests
Analyzing 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.33 |
Average class complexity | 23.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 11 | 11.34% |
▷ Public methods | 60 | 61.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 37 | 38.14% |
Functions | 27 | |
▷ Named functions | 22 | 81.48% |
▷ Anonymous functions | 5 | 18.52% |
Constants | 30 | |
▷ Global constants | 29 | 96.67% |
▷ Class constants | 1 | 3.33% |
▷ Public constants | 1 | 100.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
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 |
logo.png | 6.14KB | 3.69KB | ▼ 39.86% |