94% taxnalogy-aliexpress-product-importer

Code Review | Taxnalogy Aliexpress Product Importer

WordPress plugin Taxnalogy Aliexpress Product Importer scored 94% from 53 tests.

About plugin

  • Plugin page: taxnalogy-aliexpr...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Oct 26, 2019
  • Latest release: Mar 26, 2020
  • Number of updates: 18
  • Update frequency: every 8.5 days
  • Top authors: rnawaz02 (100%)

Code review

53 tests

User reviews

3 reviews

Install metrics

100+ active / 2,543 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Taxnalogy Aliexpress Product Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1131.62 ▲12.99
Dashboard /wp-admin3.06 ▲0.0039.68 ▼2.27
Posts /wp-admin/edit.php3.11 ▲0.0041.64 ▲0.39
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.81 ▼1,093.72
Media Library /wp-admin/upload.php3.00 ▼0.0127.95 ▼12.51

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Taxnalogy Aliexpress Product Importer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6816.14 ▲0.619.30 ▼0.4749.52 ▲2.26
Dashboard /wp-admin2,931 ▲815.96 ▲0.17138.45 ▲1.38108.59 ▲2.20
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0167.87 ▲3.4784.47 ▼10.32
Add New Post /wp-admin/post-new.php1,851 ▲20018.75 ▲1.46367.05 ▼0.22100.19 ▼7.41
Media Library /wp-admin/upload.php1,772 ▼05.02 ▲0.01143.96 ▼5.02113.89 ▲1.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | 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
  • 2× 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/taxnalogy-aliexpress-product-importer/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/taxnalogy-aliexpress-product-importer/templates/tapi-admin-menu.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === taxnalogy-aliexpress-product-importer === )
You can take inspiration from this readme.txt

taxnalogy-aliexpress-product-importer/taxnalogy-aliexpress-product-importer.php 92% from 13 tests

The primary PHP file in "Taxnalogy Aliexpress Product Importer" version 2.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 254 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin23,043 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS71,4794813,027
JavaScript52,0281,7548,217
PHP10962691,722
PO File1303077

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.36
Average class complexity27.86
▷ Minimum class complexity4.00
▷ Maximum class complexity92.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes228.57%
Methods56
▷ Static methods916.07%
▷ Public methods4071.43%
▷ Protected methods00.00%
▷ Private methods1628.57%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected