84% wp-flipkart-importer

Code Review | WP Flipkart Importer

WordPress plugin WP Flipkart Importer scored 84% from 54 tests.

About plugin

  • Plugin page: wp-flipkart-importer
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2016
  • Latest release: Mar 30, 2019
  • Number of updates: 11
  • Update frequency: every 99.5 days
  • Top authors: shambhu patnaik (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active / 6,685 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.10MB] [CPU: ▼2.78ms] Passed 4 tests

This is a short check of server-side resources used by WP Flipkart Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.89 ▼0.91
Dashboard /wp-admin3.41 ▲0.1144.68 ▼5.63
Posts /wp-admin/edit.php3.46 ▲0.1045.17 ▲0.22
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.03 ▼4.78
Media Library /wp-admin/upload.php3.33 ▲0.1038.51 ▲3.77
Flipkart Importer /wp-admin/admin.php?page=wp-flipkart-importer/wp-flipkart-importer.php3.2937.29
Help /wp-admin/admin.php?page=flipkartImporter_help3.3031.54

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
category_children
flipkart_importer_setting
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Flipkart Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6913.29 ▼1.011.60 ▼0.2341.38 ▲2.80
Dashboard /wp-admin2,229 ▲374.93 ▼0.05100.81 ▼11.1193.40 ▲53.42
Posts /wp-admin/edit.php2,118 ▲292.02 ▲0.0136.41 ▲1.9830.56 ▼1.69
Add New Post /wp-admin/post-new.php1,537 ▲423.24 ▼0.13640.11 ▲17.7467.46 ▲12.91
Media Library /wp-admin/upload.php1,414 ▲324.20 ▼0.1094.90 ▼4.2276.08 ▲28.06
Flipkart Importer /wp-admin/admin.php?page=wp-flipkart-importer/wp-flipkart-importer.php1,0962.1724.8242.38
Help /wp-admin/admin.php?page=flipkartImporter_help1,0502.0224.5231.39

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • category_children
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flipkart-importer/wp-flipkart-importer.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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: flipkart wordpress plugin, flipkart api, flipkart importer, flipkart, wp flipkart importer...

wp-flipkart-importer/wp-flipkart-importer.php Passed 13 tests

This is the main PHP file of "WP Flipkart Importer" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
WP Flipkart Importer WordPress Plugin Import product using flipkart API .

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
Everything looks great! No dangerous files found in this plugin694 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP54327631
CSS11063

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.30MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png61.12KB26.10KB▼ 57.30%
flipkart.png0.97KB1.03KB0.00%
screenshot-2.png246.58KB49.63KB▼ 79.87%