84% import-yotpo-bottomline-ratings-for-woocommerce

Code Review | Import Yotpo Bottomline Ratings for WooCommerce

WordPress plugin Import Yotpo Bottomline Ratings for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: import-yotpo-bott...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.5.38+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 13, 2018
  • Latest release: Feb 13, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: roymckenzie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

An overview of server-side resources used by Import Yotpo Bottomline Ratings for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.86 ▲1.62
Dashboard /wp-admin3.31 ▼0.0448.95 ▼19.12
Posts /wp-admin/edit.php3.36 ▲0.0048.02 ▼7.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.04 ▼19.18
Media Library /wp-admin/upload.php3.23 ▲0.0036.38 ▼2.46

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Import Yotpo Bottomline Ratings for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.181.74 ▼0.0944.61 ▲2.87
Dashboard /wp-admin2,198 ▲185.62 ▲0.0891.00 ▲0.3940.21 ▼3.57
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0636.74 ▼3.7437.21 ▼0.78
Add New Post /wp-admin/post-new.php1,526 ▼023.60 ▲0.61702.53 ▲23.7365.29 ▲9.31
Media Library /wp-admin/upload.php1,391 ▼124.21 ▲0.0698.45 ▼3.4543.54 ▼3.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • iybr-frequency
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/import-yotpo-bottomline-ratings-for-woocommerce/import-yotpo-bottomline-ratings-for-woocommerce.php

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 on the user side

Optimizations

Plugin configuration Passed 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
4 plugin tags: ratings, woocommerce, api, yotpo

import-yotpo-bottomline-ratings-for-woocommerce/import-yotpo-bottomline-ratings-for-woocommerce.php Passed 13 tests

The main PHP script in "Import Yotpo Bottomline Ratings for WooCommerce" version 0.1.0 is automatically included on every request by WordPress
61 characters long description:
Import Yotpo Bottomline ratings to your WooCommerce products.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected291 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18866291

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected