90% rec-reviews

Code Review | Rec.Reviews

WordPress plugin Rec.Reviews scored90%from 54 tests.

About plugin

  • Plugin page: rec-reviews
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 7, 2023
  • Latest release: Sep 14, 2023
  • Number of updates: 9
  • Update frequency: every 24.7 days
  • Top authors: prestamodule (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /404 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Rec.Reviews
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.77 ▲3.10
Dashboard /wp-admin3.31 ▼0.0343.53 ▼17.14
Posts /wp-admin/edit.php3.36 ▲0.0147.27 ▼4.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.53 ▼15.09
Media Library /wp-admin/upload.php3.23 ▲0.0133.59 ▲1.32

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Rec.Reviews: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.48 ▼0.121.76 ▲0.0143.66 ▲4.64
Dashboard /wp-admin2,214 ▲224.91 ▼0.0597.13 ▼23.0940.41 ▼0.17
Posts /wp-admin/edit.php2,096 ▲42.04 ▼0.0239.67 ▼0.7439.46 ▲2.96
Add New Post /wp-admin/post-new.php1,528 ▲1423.23 ▲5.72600.05 ▼95.8053.79 ▲0.82
Media Library /wp-admin/upload.php1,396 ▲54.17 ▲0.0594.47 ▼6.9243.53 ▼5.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: rating, woocommerce, video, reviews, testimonials...

rec-reviews/rec-reviews.php Passed 13 tests

The main file in "Rec.Reviews" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Automate video customer reviews on your e-commerce site

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
Good job! No executable or dangerous file extensions detected958 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File1232483

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity49.50
▷ Minimum class complexity35.00
▷ Maximum class complexity64.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1428.57%
▷ Public methods2959.18%
▷ Protected methods1836.73%
▷ Private methods24.08%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants654.55%
▷ Class constants545.45%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin