89% feefo-ratings-reviews-for-woocommerce

Code Review | Feefo Ratings & Reviews for WooCommerce

WordPress plugin Feefo Ratings & Reviews for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: feefo-ratings-rev...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2016
  • Latest release: Aug 9, 2023
  • Number of updates: 38
  • Update frequency: every 68.1 days
  • Top authors: feefo (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /6,582 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.33ms] Passed 4 tests

An overview of server-side resources used by Feefo Ratings & Reviews for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.24 ▼6.21
Dashboard /wp-admin3.31 ▲0.0044.69 ▼8.64
Posts /wp-admin/edit.php3.36 ▲0.0049.72 ▼0.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.32 ▼18.21
Media Library /wp-admin/upload.php3.23 ▲0.0035.15 ▲0.66

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
feefo_wc_wp_just_installed
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Feefo Ratings & Reviews for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.64 ▲0.241.69 ▼0.1943.87 ▲0.19
Dashboard /wp-admin2,206 ▲184.83 ▼0.14108.58 ▼9.0040.77 ▼3.98
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0539.29 ▲3.0634.50 ▼4.07
Add New Post /wp-admin/post-new.php1,533 ▲1423.24 ▲0.40660.19 ▼9.8756.06 ▼4.97
Media Library /wp-admin/upload.php1,388 ▲34.28 ▲0.0595.04 ▼8.1240.47 ▼2.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • feefo_wc_wp_just_installed
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

feefo-ratings-reviews-for-woocommerce/feefo-ratings-and-reviews.php 77% from 13 tests

The main PHP file in "Feefo Ratings & Reviews for WooCommerce" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("feefo-ratings-reviews-for-woocommerce.php" instead of "feefo-ratings-and-reviews.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 237 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected488 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2159129446
CSS34241
SVG1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/menu_icon28x28.png0.57KB0.63KB0.00%