78% widgets-for-aliexpress-reviews

Code Review | Widgets for AliExpress Reviews

WordPress plugin Widgets for AliExpress Reviews scored78%from 54 tests.

About plugin

  • Plugin page: widgets-for-aliex...
  • Plugin version: 11.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: May 8, 2021
  • Latest release: Nov 24, 2023
  • Number of updates: 86
  • Update frequency: every 10.8 days
  • Top authors: trustindex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲1.13MB] [CPU: ▲1.02ms] Passed 4 tests

An overview of server-side resources used by Widgets for AliExpress Reviews
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.59 ▲1.1247.26 ▲5.33
Dashboard /wp-admin4.46 ▲1.1553.20 ▲0.50
Posts /wp-admin/edit.php4.49 ▲1.1356.08 ▲5.56
Add New Post /wp-admin/post-new.php7.10 ▲1.2192.78 ▼7.33
Media Library /wp-admin/upload.php4.34 ▲1.1046.22 ▲9.88

Server storage [IO: ▲6.48MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 262 new files
Database: 1 new table, 8 new options
New tables
wp_trustindex_aliexpress_reviews
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
trustindex-aliexpress-version
trustindex-aliexpress-active
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Widgets for AliExpress Reviews: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6214.22 ▼0.131.75 ▼0.0338.15 ▼6.49
Dashboard /wp-admin2,199 ▲225.54 ▼0.1299.28 ▲4.9180.51 ▲38.15
Posts /wp-admin/edit.php2,119 ▲191.99 ▲0.0340.18 ▼3.8736.70 ▲1.71
Add New Post /wp-admin/post-new.php6,379 ▲4,85327.62 ▲4.47829.33 ▲235.4136.22 ▼17.50
Media Library /wp-admin/upload.php1,419 ▲194.24 ▲0.0898.08 ▼2.2868.81 ▲28.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 22× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/tabs/setup_trustindex_join.php
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/trunk/tabs/setup_trustindex_join.php
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/tabs/setup_no_reg_header.php
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/tabs/setup_trustindex.php
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/trunk/tabs/feature_request.php
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/tabs/my_reviews.php
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/trunk/tabs/my_reviews.php
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/trunk/widgets-for-aliexpress-reviews.php
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/trunk/settings.php
    • > /wp-content/plugins/widgets-for-aliexpress-reviews/trunk/tabs/rate.php
  • 24× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_aliexpress' not found in wp-content/plugins/widgets-for-aliexpress-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-aliexpress-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-aliexpress-reviews/trunk/include/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widgets-for-aliexpress-reviews/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_aliexpress' not found in wp-content/plugins/widgets-for-aliexpress-reviews/trunk/tabs/_get_more_customers.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-aliexpress-reviews/include/schema.php:4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/widgets-for-aliexpress-reviews/trunk/include/activate.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_aliexpress' not found in wp-content/plugins/widgets-for-aliexpress-reviews/tabs/setup_no_reg_platform.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_aliexpress' not found in wp-content/plugins/widgets-for-aliexpress-reviews/trunk/tabs/_rate_us_feedback.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_aliexpress' not found in wp-content/plugins/widgets-for-aliexpress-reviews/trunk/tabs/demo_widgets.php:6

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

widgets-for-aliexpress-reviews/widgets-for-aliexpress-reviews.php Passed 13 tests

The principal PHP file in "Widgets for AliExpress Reviews" v. 11.1 is loaded by WordPress automatically on each request
122 characters long description:
Embed AliExpress reviews fast and easily into your WordPress site. Increase SEO, trust and sales using AliExpress reviews.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected10,474 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP2343389,281
JavaScript63011751,018
CSS413063
SVG32060
JSON10052

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity127.00
▷ Minimum class complexity10.00
▷ Maximum class complexity348.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods196
▷ Static methods126.12%
▷ Public methods19297.96%
▷ Protected methods00.00%
▷ Private methods42.04%
Functions34
▷ Named functions1647.06%
▷ Anonymous functions1852.94%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
static/img/no.png1.92KB0.28KB▼ 85.53%
trunk/static/img/platforms.png10.24KB4.08KB▼ 60.12%
trunk/static/img/trustindex-sign-logo.png3.34KB0.59KB▼ 82.47%
static/img/yes.png1.91KB0.25KB▼ 87.08%
trunk/static/img/no.png1.92KB0.28KB▼ 85.53%