89% 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 89% 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: 6.3.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

50+ active / 568 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
Installer ran successfully

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

Analyzing server-side resources used by Custom Product Taxonomy To woo Exporter/importer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.81 ▼1.24
Dashboard /wp-admin3.35 ▲0.0442.82 ▼5.64
Posts /wp-admin/edit.php3.46 ▲0.1048.55 ▲3.26
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.85 ▲10.34
Media Library /wp-admin/upload.php3.27 ▲0.0436.03 ▲1.15

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Custom Product Taxonomy To woo Exporter/importer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7714.70 ▲0.452.12 ▼0.3144.20 ▼1.43
Dashboard /wp-admin2,215 ▲274.82 ▼1.03109.04 ▼6.7642.72 ▼4.41
Posts /wp-admin/edit.php2,097 ▲52.00 ▲0.0039.83 ▲3.1836.42 ▲2.20
Add New Post /wp-admin/post-new.php1,542 ▲923.39 ▲0.20592.44 ▼78.2961.05 ▲10.55
Media Library /wp-admin/upload.php1,397 ▲94.22 ▼0.0198.66 ▼3.9942.23 ▼3.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Screenshots: Add an image for screenshot #1 (Set Custom Taxonomy after activation)
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 primary PHP file in "Custom Product Taxonomy To woo Exporter/importer" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • 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")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected240 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47878231
Markdown1509

PHP code Passed 2 tests

An overview 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

PNG files should be compressed to save space and 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%