10% swrei-review-exim

Code Review | Woocommerce Product Review Export/Import

WordPress plugin Woocommerce Product Review Export/Import scored 10% from 54 tests.

About plugin

  • Plugin page: swrei-review-exim
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 5.8.1
  • First release: Jan 23, 2018
  • Latest release: Jan 24, 2018
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: oremtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 819 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/swrei-review-exim/simple_review_exportimport.php+269
    Non-static method SWREI_wc_export_review::SWREI_instance() should not be called statically

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

Analyzing server-side resources used by Woocommerce Product Review Export/Import
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0031.53 ▼0.83
Dashboard /wp-admin3.06 ▲0.0042.08 ▲4.95
Posts /wp-admin/edit.php3.11 ▲0.0037.18 ▼8.79
Add New Post /wp-admin/post-new.php5.42 ▼0.0288.24 ▼558.96
Media Library /wp-admin/upload.php3.00 ▲0.0032.07 ▲1.66

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Product Review Export/Import
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.93 ▲0.489.02 ▼0.4642.60 ▼6.70
Dashboard /wp-admin2,970 ▲396.07 ▲0.14133.91 ▼9.09111.96 ▲2.35
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0265.61 ▼9.0694.73 ▲2.91
Add New Post /wp-admin/post-new.php1,872 ▲19019.21 ▲0.33361.33 ▼29.67106.15 ▼3.80
Media Library /wp-admin/upload.php1,810 ▼05.00 ▲0.00156.48 ▲7.47120.18 ▲4.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
Even though everything seems fine, this is not 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/swrei-review-exim/template/template_product_im_ex.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/swrei-review-exim/template/template_review_export.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt might help

swrei-review-exim/simple_review_exportimport.php 85% from 13 tests

The main PHP file in "Woocommerce Product Review Export/Import" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.1" instead of "4.4")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("swrei-review-exim.php" instead of "simple_review_exportimport.php")

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 plugin562 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP515026354
CSS170116
JavaScript128192

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity18.00
▷ Minimum class complexity10.00
▷ Maximum class complexity32.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods418.18%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
There were not PNG files found in your plugin