84% order-reviews-for-woocommerce

Code Review | Order Reviews for WooCommerce Free

WordPress plugin Order Reviews for WooCommerce Free scored84%from 54 tests.

About plugin

  • Plugin page: order-reviews-for...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 11, 2022
  • Latest release: Aug 14, 2022
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: jompha (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /422 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.36MB] [CPU: ▼1.22ms] Passed 4 tests

An overview of server-side resources used by Order Reviews for WooCommerce Free
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3039.95 ▼0.33
Dashboard /wp-admin3.73 ▲0.4350.33 ▼1.17
Posts /wp-admin/edit.php3.78 ▲0.4348.73 ▼4.80
Add New Post /wp-admin/post-new.php6.25 ▲0.3791.65 ▲3.68
Media Library /wp-admin/upload.php3.59 ▲0.3738.03 ▲1.44

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Order Reviews for WooCommerce Free
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.28 ▼1.314.27 ▲2.3740.40 ▼12.85
Dashboard /wp-admin2,215 ▲335.88 ▲1.01108.20 ▼6.4042.93 ▲0.73
Posts /wp-admin/edit.php2,101 ▲122.03 ▲0.0434.35 ▼6.1036.21 ▼1.04
Add New Post /wp-admin/post-new.php1,546 ▲423.52 ▲5.22647.07 ▲38.3961.36 ▲1.36
Media Library /wp-admin/upload.php1,394 ▲34.24 ▼0.01100.05 ▲1.2841.13 ▼3.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/order-reviews-for-woocommerce/render/Front/markup/popup-design-1.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: rating, woocommerce, order review for woocommerce, review, order review

order-reviews-for-woocommerce/order-reviews-for-woocommerce.php Passed 13 tests

The principal PHP file in "Order Reviews for WooCommerce Free" v. 1.0.0 is loaded by WordPress automatically on each request
72 characters long description:
A review and feedback capture plugin for WooCommerce. Powered by Jompha.

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
Everything looks great! No dangerous files found in this plugin2,219 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP122441451,426
CSS75625590
JavaScript4329165
SVG10038

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity15.11
▷ Minimum class complexity2.00
▷ Maximum class complexity50.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods66
▷ Static methods1116.67%
▷ Public methods4771.21%
▷ Protected methods00.00%
▷ Private methods1928.79%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants10
▷ Global constants10100.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
7 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/images/rating-2.png3.49KB1.70KB▼ 51.34%
resources/images/rating-1.png4.27KB2.23KB▼ 47.87%
resources/images/rating-0.png3.96KB2.26KB▼ 42.99%
resources/images/jsp-banner.png68.80KB28.39KB▼ 58.73%
resources/images/rating-5.png4.05KB2.38KB▼ 41.17%