89% helpfulcrowd-product-reviews

Code Review | Helpfulcrowd Product Reviews

WordPress plugin Helpfulcrowd Product Reviews scored89%from 54 tests.

About plugin

  • Plugin page: helpfulcrowd-prod...
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Aug 16, 2021
  • Latest release: Nov 30, 2023
  • Number of updates: 29
  • Update frequency: every 29.0 days
  • Top authors: helpfulcrowd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /2,270 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.60ms] Passed 4 tests

A check of server-side resources used by Helpfulcrowd Product Reviews
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.69 ▼10.01
Dashboard /wp-admin3.31 ▼0.0444.81 ▼16.13
Posts /wp-admin/edit.php3.36 ▲0.0045.52 ▼3.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.26 ▼16.60
Media Library /wp-admin/upload.php3.23 ▲0.0035.70 ▼0.66

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
helpfulcrowd_adminConsent
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Helpfulcrowd Product Reviews
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.69 ▼0.031.77 ▲0.1339.55 ▼2.05
Dashboard /wp-admin2,192 ▲175.72 ▲0.0395.29 ▼23.6342.38 ▼0.58
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0139.23 ▼0.8535.99 ▼1.02
Add New Post /wp-admin/post-new.php1,526 ▼323.02 ▼0.35611.95 ▼55.5059.41 ▼4.09
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0096.77 ▲0.0243.22 ▲0.93

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
8 plugin tags: photo reviews, reviews, questions and answers, ugc, woocommerce...

helpfulcrowd-product-reviews/helpfulcrowd.php 85% from 13 tests

"Helpfulcrowd Product Reviews" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("helpfulcrowd-product-reviews.php" instead of "helpfulcrowd.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,990 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP123503171,630
CSS15914309
JavaScript23026
SVG20225

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity18.44
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods78
▷ Static methods56.41%
▷ Public methods4861.54%
▷ Protected methods1924.36%
▷ Private methods1114.10%
Functions14
▷ Named functions964.29%
▷ Anonymous functions535.71%
Constants12
▷ Global constants216.67%
▷ Class constants1083.33%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/rate.png7.35KB4.40KB▼ 40.14%
assets/img/tabs.png9.71KB4.93KB▼ 49.20%
assets/img/support.png17.29KB6.78KB▼ 60.77%
assets/img/summary.png4.98KB2.45KB▼ 50.79%
assets/img/logo_small.png2.52KB2.11KB▼ 16.25%