89% review-find-and-import-for-woocommerce

Code Review | Review Find and Import for Woocommerce

WordPress plugin Review Find and Import for Woocommerce scored 89% from 54 tests.

About plugin

  • Plugin page: review-find-and-i...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Apr 3, 2020
  • Latest release: May 25, 2020
  • Number of updates: 18
  • Update frequency: every 3.1 days
  • Top authors: repupress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 559 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.77ms] Passed 4 tests

Server-side resources used by Review Find and Import for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.83 ▼0.19
Dashboard /wp-admin3.45 ▲0.1449.07 ▼0.51
Posts /wp-admin/edit.php3.56 ▲0.2049.61 ▼2.33
Add New Post /wp-admin/post-new.php6.03 ▲0.1492.19 ▲1.86
Media Library /wp-admin/upload.php3.37 ▲0.1434.77 ▼0.04
Automations /wp-admin/admin.php?page=api-review-automations3.4133.25

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Review Find and Import for Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10213.30 ▼1.002.19 ▲0.1443.26 ▲0.29
Dashboard /wp-admin2,229 ▲474.87 ▼0.93108.46 ▼0.9438.30 ▼4.28
Posts /wp-admin/edit.php2,112 ▲232.02 ▲0.0041.81 ▲2.6136.70 ▲1.73
Add New Post /wp-admin/post-new.php1,539 ▼323.16 ▲4.78653.63 ▲9.7153.09 ▲4.51
Media Library /wp-admin/upload.php1,411 ▲264.17 ▲0.0394.98 ▼10.9041.76 ▼0.97
Automations /wp-admin/admin.php?page=api-review-automations9452.0223.6129.59

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
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • api_review_automation_count
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • api_review_automation_all
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: import reviews, find reviews, woocommerce, review plugin, woocommerce reviews

review-find-and-import-for-woocommerce/review-find-and-import-for-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Review Find and Import for Woocommerce" version 1.4.0
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected2,232 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP141771322,232

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.42MB with 0.29MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/pricing.png305.49KB0.00KB▼ 100.00%
assets/reviews.png66.12KB29.29KB▼ 55.70%
assets/videos.png56.50KB25.72KB▼ 54.48%