83% netreviews

Code Review | Verified Reviews (Avis Vérifiés)

WordPress plugin Verified Reviews (Avis Vérifiés) scored83%from 54 tests.

About plugin

  • Plugin page: netreviews
  • Plugin version: 2.3.15
  • PHP version: 7.4.16
  • WordPress compatibility: 1.3.1-6.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2017
  • Latest release: Jul 25, 2023
  • Number of updates: 93
  • Update frequency: every 25.4 days
  • Top authors: avisverifies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /20,805 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼4.36ms] Passed 4 tests

A check of server-side resources used by Verified Reviews (Avis Vérifiés)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3153.76 ▲16.15
Dashboard /wp-admin3.67 ▲0.3347.65 ▼9.79
Posts /wp-admin/edit.php3.72 ▲0.3746.45 ▼3.73
Add New Post /wp-admin/post-new.php6.19 ▲0.3181.85 ▼12.54
Media Library /wp-admin/upload.php3.53 ▲0.3043.77 ▲8.63

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 97 new files
Database: 3 new tables, 6 new options
New tables
wp_netreviews_configuration
wp_netreviews_products_average
wp_netreviews_products_reviews
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Verified Reviews (Avis Vérifiés): an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.39 ▲0.051.86 ▲0.2142.55 ▲1.62
Dashboard /wp-admin2,206 ▲295.67 ▲0.1480.00 ▼6.4378.61 ▲38.86
Posts /wp-admin/edit.php2,108 ▲112.13 ▲0.1632.58 ▼1.0534.55 ▼1.42
Add New Post /wp-admin/post-new.php1,690 ▲16222.04 ▼1.19757.44 ▲61.0954.97 ▼3.10
Media Library /wp-admin/upload.php1,414 ▲114.31 ▲0.1496.36 ▼2.5566.47 ▲22.38

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/netreviews/includes/templates/templateV2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/netreviews/includes/starsProduct.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/netreviews/includes/templates/templateV1.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ntav_getWpmlEnable() in wp-content/plugins/netreviews/includes/review_Pagination.php:3

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

readme.txt 88% 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:
  • Screenshots: Screenshot #1 (Product reviews display / Encart des avis produits) image not found
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

netreviews/netreviews.php 85% from 13 tests

Analyzing the main PHP file in "Verified Reviews (Avis Vérifiés)" version 2.3.15
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected23,349 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS853415911,595
JavaScript191,0256024,977
PHP95054834,616
PO File87148091,857
SVG200304

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions116
▷ Named functions116100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 compressed PNG files occupy 0.73MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/Sceau_100_de.png6.31KB6.45KB0.00%
includes/images/logo_full_de.png11.38KB11.74KB0.00%
includes/images/logo_full_pt.png7.39KB7.59KB0.00%
includes/images/Sceau_100_es.png6.27KB6.35KB0.00%
includes/images/logo_full_gb.png11.63KB12.06KB0.00%