78% loudervoice

Code Review | LouderVoice Reviews

WordPress plugin LouderVoice Reviews scored78%from 54 tests.

About plugin

  • Plugin page: loudervoice
  • Plugin version: 3.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 1, 2009
  • Latest release: Jan 11, 2019
  • Number of updates: 52
  • Update frequency: every 69.9 days
  • Top authors: conoro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,829 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.83ms] Passed 4 tests

An overview of server-side resources used by LouderVoice Reviews
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.66 ▲3.00
Dashboard /wp-admin3.34 ▼0.0144.31 ▼19.97
Posts /wp-admin/edit.php3.39 ▲0.0347.35 ▼0.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.84 ▼1.67
Media Library /wp-admin/upload.php3.26 ▲0.0338.98 ▲3.88

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_ldv_average
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for LouderVoice Reviews
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▲0.161.62 ▲0.0537.64 ▼0.09
Dashboard /wp-admin2,195 ▲145.63 ▼0.0990.89 ▼8.5440.81 ▼2.24
Posts /wp-admin/edit.php2,103 ▼01.98 ▼0.0542.78 ▲2.9037.31 ▼1.56
Add New Post /wp-admin/post-new.php1,526 ▼223.06 ▼0.08668.64 ▲12.0166.81 ▲13.45
Media Library /wp-admin/upload.php1,400 ▲64.19 ▲0.03110.10 ▲11.6947.08 ▲5.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_ldv_average
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/loudervoice/loudervoice.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'LDV_Plugin_Admin' not found in wp-content/plugins/loudervoice/admin/ldv-config.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/loudervoice-average-rating-widget.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/admin/ldv-post-meta.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/frontend/ldv-display-reviews.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/inc/ldv-ajax-functions.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loudervoice/loudervoice-random-review-widget.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/loudervoice/plugin-update.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: hreview, loudervoice, reviews, microformats, rich-snippets

loudervoice/loudervoice-random-review-widget.php 92% from 13 tests

The main PHP script in "LouderVoice Reviews" version 3.00 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("loudervoice.php" instead of "loudervoice-random-review-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,586 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP122923241,355
PO File14344101
CSS217463
JavaScript1121048
HTML10019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.67
▷ Minimum class complexity4.00
▷ Maximum class complexity19.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
21 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/images/newstars-small1.0.png1.67KB1.53KB▼ 8.65%
widgets/images/newstars4.5.png2.93KB1.90KB▼ 34.93%
widgets/images/newstars2.0.png3.12KB1.90KB▼ 39.12%
widgets/images/newstars4.0.png2.98KB1.90KB▼ 36.35%
widgets/images/newstars3.0.png3.06KB1.90KB▼ 38.11%