83% custom-product-tabs-wp-all-import-add-on

Code Review | Custom Product Tabs for WooCommerce WP All Import Add-on

WordPress plugin Custom Product Tabs for WooCommerce WP All Import Add-on scored83%from 54 tests.

About plugin

  • Plugin page: custom-product-ta...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2017
  • Latest release: Jun 24, 2023
  • Number of updates: 44
  • Update frequency: every 51.6 days
  • Top authors: yikesitskevin (77.27%)yikesinc (15.91%)fmixell (6.82%)eherman24 (4.55%)jpowersdev (4.55%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /21,785 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼2.16ms] Passed 4 tests

An overview of server-side resources used by Custom Product Tabs for WooCommerce WP All Import Add-on
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1944.65 ▼1.36
Dashboard /wp-admin3.49 ▲0.1854.18 ▼0.24
Posts /wp-admin/edit.php3.60 ▲0.2449.97 ▲1.53
Add New Post /wp-admin/post-new.php6.07 ▲0.1885.46 ▼8.58
Media Library /wp-admin/upload.php3.41 ▲0.1841.02 ▲5.69

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Custom Product Tabs for WooCommerce WP All Import Add-on
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.18 ▼1.234.97 ▲3.1145.39 ▼0.39
Dashboard /wp-admin2,223 ▲355.84 ▲0.95100.45 ▼13.5840.21 ▼3.70
Posts /wp-admin/edit.php2,109 ▲172.00 ▲0.0142.37 ▲4.2034.28 ▼1.33
Add New Post /wp-admin/post-new.php1,545 ▲1223.34 ▲0.10648.41 ▲6.6150.09 ▲0.44
Media Library /wp-admin/upload.php1,399 ▲84.24 ▲0.0499.29 ▼5.3144.25 ▼4.79

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-product-tabs-wp-all-import-add-on/custom-product-tabs-wp-all-import-add-on.php on line 28
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/custom-product-tabs-wp-all-import-add-on/custom-product-tabs-wp-all-import-add-on.php on line 28
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-product-tabs-wp-all-import-add-on/custom-product-tabs-wp-all-import-add-on.php on line 28

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: yikes, tab import, tabs, wp all import, custom product tabs...

custom-product-tabs-wp-all-import-add-on/custom-product-tabs-wp-all-import-add-on.php 77% from 13 tests

"Custom Product Tabs for WooCommerce WP All Import Add-on" version 2.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.8" instead of "3.0.0")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,021 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23031481,021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity202.00
▷ Minimum class complexity202.00
▷ Maximum class complexity202.00
Average method complexity5.10
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin