99% add-custom-taxonomy-to-woo-exporter-importer

Code Review | Custom Product Taxonomy To woo Exporter/importer

WordPress plugin Custom Product Taxonomy To woo Exporter/importer scored 99% from 54 tests.

About plugin

  • Plugin page: add-custom-taxono...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.5.1
  • WordPress version: 5.8.1
  • First release: Oct 12, 2020
  • Latest release: Oct 12, 2020
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: mohsin86 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 256 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼198.77ms] Passed 4 tests

Analyzing server-side resources used by Custom Product Taxonomy To woo Exporter/importer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1630.93 ▲13.95
Dashboard /wp-admin3.10 ▲0.0436.85 ▼10.03
Posts /wp-admin/edit.php3.19 ▲0.0838.49 ▼5.23
Add New Post /wp-admin/post-new.php5.47 ▲0.0271.93 ▼784.43
Media Library /wp-admin/upload.php3.05 ▲0.0428.31 ▲4.62

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Custom Product Taxonomy To woo Exporter/importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7715.88 ▼0.188.80 ▼1.3776.99 ▲2.96
Dashboard /wp-admin2,939 ▲436.11 ▼0.13114.58 ▼20.71167.44 ▼10.75
Posts /wp-admin/edit.php2,755 ▲183.23 ▼0.0164.87 ▲0.82134.24 ▲0.05
Add New Post /wp-admin/post-new.php3,706 ▼10118.04 ▼0.46422.24 ▼21.66159.64 ▲0.06
Media Library /wp-admin/upload.php1,764 ▲125.54 ▲0.12144.21 ▼0.25191.47 ▲3.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Set Custom Taxonomy after activation) image missing
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

add-custom-taxonomy-to-woo-exporter-importer/custom-taxonomy-to-woo-exporter-importer.php 85% from 13 tests

The entry point to "Custom Product Taxonomy To woo Exporter/importer" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 ("add-custom-taxonomy-to-woo-exporter-importer.php" instead of "custom-taxonomy-to-woo-exporter-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
No dangerous file extensions were detected240 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47878231
Markdown1509

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.25
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png78.84KB22.15KB▼ 71.91%