83% solo-solis-product-import

Code Review | Solo Solis Product Import

WordPress plugin Solo Solis Product Import scored83%from 54 tests.

About plugin

  • Plugin page: solo-solis-produc...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 14, 2021
  • Latest release: Apr 11, 2022
  • Number of updates: 11
  • Update frequency: every 25.0 days
  • Top authors: solosolis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Solo Solis Product Import
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.38 ▼3.76
Dashboard /wp-admin3.31 ▲0.0051.47 ▼0.97
Posts /wp-admin/edit.php3.36 ▲0.0052.34 ▲4.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.08 ▼16.31
Media Library /wp-admin/upload.php3.23 ▲0.0035.84 ▼0.16

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Solo Solis Product Import: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.70 ▲0.301.79 ▲0.0541.54 ▲0.57
Dashboard /wp-admin2,195 ▲155.64 ▼0.0392.46 ▲3.2140.45 ▼3.55
Posts /wp-admin/edit.php2,103 ▲32.05 ▲0.0540.80 ▲0.1235.24 ▼2.69
Add New Post /wp-admin/post-new.php1,550 ▲1823.37 ▼0.05592.11 ▼56.9962.54 ▲14.20
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.0797.60 ▼5.8042.19 ▼1.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/solo-solis-product-import/woo-product-importer-upload.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/solo-solis-product-import/woo-product-importer-preview.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/solo-solis-product-import/woo-product-importer-common.php:144
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/solo-solis-product-import/woo-product-importer-result.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/solo-solis-product-import/woo-product-importer-ajax.php:20

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

solo-solis-product-import/woo-product-importer.php 85% from 13 tests

The principal PHP file in "Solo Solis Product Import" v. 1.2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("solo-solis-product-import.php" instead of "woo-product-importer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,039 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP62411531,039

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods880.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.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
9 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/solo-solis.png17.69KB6.40KB▼ 63.79%
img/error.png0.65KB0.68KB0.00%
Screenshot-2.png26.79KB13.29KB▼ 50.38%
img/icon.png0.48KB0.49KB0.00%
img/exclamation.png0.68KB0.72KB0.00%