84% comments-import-export-woocommerce

Code Review | WordPress Comments Import & Export

WordPress plugin WordPress Comments Import & Export scored84%from 54 tests.

About plugin

  • Plugin page: comments-import-e...
  • Plugin version: 2.3.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Nov 23, 2023
  • Number of updates: 92
  • Update frequency: every 27.7 days
  • Top authors: webtoffee (44.57%)hikeforce (31.52%)mujeebur (16.3%)xadapter (9.78%)extensionhawk (2.17%)

Code review

54 tests

User reviews

58 reviews

Install metrics

3,000+ active /79,743 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.23MB] [CPU: ▼5.00ms] Passed 4 tests

Server-side resources used by WordPress Comments Import & Export
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2342.19 ▲1.97
Dashboard /wp-admin3.59 ▲0.2450.37 ▼15.26
Posts /wp-admin/edit.php3.64 ▲0.2852.41 ▼0.42
Add New Post /wp-admin/post-new.php6.11 ▲0.2295.87 ▼4.66
Media Library /wp-admin/upload.php3.45 ▲0.2240.11 ▲0.36
All Comments /wp-admin/edit-comments.php3.5242.99
Comments Im-Ex /wp-admin/edit-comments.php?page=hw_cmt_csv_im_ex3.5441.43

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 85 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
wtcmtie_start_date
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Comments Import & Export
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6114.27 ▲0.121.68 ▼0.0239.56 ▼4.25
Dashboard /wp-admin2,213 ▲395.60 ▼0.0592.87 ▼6.3741.21 ▼6.62
Posts /wp-admin/edit.php2,118 ▲181.96 ▲0.0238.74 ▼1.0334.22 ▼3.23
Add New Post /wp-admin/post-new.php1,542 ▲1622.98 ▼0.46576.43 ▼7.5554.21 ▼0.19
Media Library /wp-admin/upload.php1,418 ▲184.18 ▼0.0796.41 ▼2.2042.01 ▼2.52
All Comments /wp-admin/edit-comments.php1,8482.2740.2133.73
Comments Im-Ex /wp-admin/edit-comments.php?page=hw_cmt_csv_im_ex1,6262.4140.7748.08

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • wtcmtie_start_date
    • cmt_ex_im_option
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-import-export-woocommerce/includes/class-wf-cmt_impexp-plugin-uninstall-feedback.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/comments-import-export-woocommerce/includes/views/settings/html-hf-settings-products.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-import-export-woocommerce/includes/views/export/html-hf-export-WordPress-Comments-normal.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-import-export-woocommerce/includes/views/html-hf-getting-started.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/comments-import-export-woocommerce/includes/views/html-hf-admin-screen.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-import-export-woocommerce/includes/importer/views/html-hf-import-greeting.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/comments-import-export-woocommerce/includes/importer/views/html-hf-import-options.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-import-export-woocommerce/includes/views/export/html-hf-export-WordPress-Comments.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-import-export-woocommerce/includes/views/import/html-hf-import-product-comments.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: woodiscuz, export, import, comments, wpdiscuz...

comments-import-export-woocommerce/hf-comments-import-export.php 92% from 13 tests

"WordPress Comments Import & Export" version 2.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("comments-import-export-woocommerce.php" instead of "hf-comments-import-export.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected6,111 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP296405203,971
PO File14645911,329
CSS35960728
JavaScript21651
SVG30032

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity38.64
▷ Minimum class complexity1.00
▷ Maximum class complexity190.00
Average method complexity6.22
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods101
▷ Static methods1817.82%
▷ Public methods9392.08%
▷ Protected methods10.99%
▷ Private methods76.93%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
40 PNG files occupy 0.39MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/other_solutions/order-import-export-plugin.png25.15KB24.77KB▼ 1.50%
images/other_solutions/smart-coupons-plugin.png5.73KB5.74KB0.00%
images/ui-icons_777777_256x240.png3.67KB4.17KB0.00%
images/ui-icons_555555_256x240.png3.67KB4.17KB0.00%
images/wf-failed.png3.30KB0.54KB▼ 83.61%