89% artur-store-reviews

Code Review | Artur Store Reviews for WooCommerce

WordPress plugin Artur Store Reviews for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: artur-store-reviews
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Jan 26, 2018
  • Number of updates: 14
  • Update frequency: every 9.1 days
  • Top authors: arturstorereview (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /804 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.13ms] Passed 4 tests

Analyzing server-side resources used by Artur Store Reviews for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.46 ▼5.51
Dashboard /wp-admin3.42 ▲0.1250.95 ▼2.88
Posts /wp-admin/edit.php3.53 ▲0.1854.21 ▼1.34
Add New Post /wp-admin/post-new.php6.00 ▲0.1292.99 ▲1.21
Media Library /wp-admin/upload.php3.34 ▲0.1141.15 ▲1.24
Artur Store Review /wp-admin/options-general.php?page=artur-store-review3.3638.39

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
artur-store-review-messages
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Artur Store Reviews for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.131.65 ▼0.0745.94 ▼5.05
Dashboard /wp-admin2,199 ▲195.63 ▼0.0290.97 ▼0.6540.43 ▼2.87
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0040.24 ▼0.2336.04 ▼1.02
Add New Post /wp-admin/post-new.php1,531 ▼423.05 ▲4.73673.36 ▲7.0554.24 ▼12.29
Media Library /wp-admin/upload.php1,401 ▼24.28 ▲0.11100.42 ▲1.2541.64 ▼4.16
Artur Store Review /wp-admin/options-general.php?page=artur-store-review1,0482.0322.0332.31

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive 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 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

artur-store-reviews/artur-store-reviews.php 77% from 13 tests

The main PHP script in "Artur Store Reviews for WooCommerce" version 1.2.1 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin740 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5266213740

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity27.75
▷ Minimum class complexity3.00
▷ Maximum class complexity46.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods44
▷ Static methods613.64%
▷ Public methods2761.36%
▷ Protected methods00.00%
▷ Private methods1738.64%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants317.65%
▷ Class constants1482.35%
▷ Public constants14100.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
PNG images were not found in this plugin