89% active-catalog

Code Review | Active Catalog

WordPress plugin Active Catalog scored 89% from 54 tests.

About plugin

  • Plugin page: active-catalog
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.2
  • WordPress version: 5.9.2
  • First release: Sep 4, 2019
  • Latest release: Sep 5, 2019
  • Number of updates: 8
  • Update frequency: every 2.6 days
  • Top authors: activeconv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 795 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.42MB] [CPU: ▼280.97ms] Passed 4 tests

Server-side resources used by Active Catalog
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.57 ▲0.3768.04 ▲11.63
Dashboard /wp-admin4.54 ▲0.5150.74 ▲9.35
Posts /wp-admin/edit.php4.75 ▲0.4259.48 ▲13.00
Add New Post /wp-admin/post-new.php8.10 ▲0.50122.06 ▼1,157.86
Media Library /wp-admin/upload.php4.38 ▲0.4046.87 ▲15.30
Products /wp-admin/edit.php?post_type=ac_product4.5143.33
Menus /wp-admin/nav-menus.php4.3747.50
Tags /wp-admin/edit-tags.php?taxonomy=ac_product_tag&post_type=ac_product4.4252.65
Categories /wp-admin/edit-tags.php?taxonomy=ac_product_cat&post_type=ac_product4.4247.05
Search results /wp-admin/options.php?page=ac-search4.4349.92
Widgets /wp-admin/widgets.php6.4170.94
Add new /wp-admin/post-new.php?post_type=ac_product8.09108.29
Delete & transfer /wp-admin/admin.php?page=delete_transfer4.3943.19
Settings /wp-admin/edit.php?post_type=ac_product&page=catalog-settings4.3742.61

Server storage [IO: ▲0.21MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Active Catalog: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,052 ▲33019.26 ▲3.596.39 ▲0.292.49 ▲0.07
Dashboard /wp-admin3,163 ▲3029.48 ▲3.33175.31 ▲37.57160.32 ▲0.08
Posts /wp-admin/edit.php2,968 ▲2746.78 ▲3.54100.12 ▲35.72142.07 ▼8.23
Add New Post /wp-admin/post-new.php1,714 ▲5322.22 ▲5.41451.28 ▲32.38169.34 ▼3.05
Media Library /wp-admin/upload.php1,738 ▲376.78 ▲1.27142.23 ▼0.62221.27 ▲25.45
Products /wp-admin/edit.php?post_type=ac_product1,8076.74141.02131.17
Menus /wp-admin/nav-menus.php2,6517.0497.61131.87
Tags /wp-admin/edit-tags.php?taxonomy=ac_product_tag&post_type=ac_product1,8676.6488.21107.61
Categories /wp-admin/edit-tags.php?taxonomy=ac_product_cat&post_type=ac_product1,9176.7989.03112.95
Search results /wp-admin/options.php?page=ac-search1,2426.0883.5094.30
Widgets /wp-admin/widgets.php2,60926.86573.49266.74
Add new /wp-admin/post-new.php?post_type=ac_product9,72920.68530.83216.97
Delete & transfer /wp-admin/admin.php?page=delete_transfer1,2666.0280.13107.66
Settings /wp-admin/edit.php?post_type=ac_product&page=catalog-settings1,3236.1082.28117.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/edit.php?post_type=ac_product&page=catalog-settings
    • > Notice in wp-content/plugins/active-catalog/includes/pages/options-page/tabs.php+13
    Undefined variable: tab

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=ac_product
    • > Network (severe)
    products/?_wp-find-template=true - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: catalog, industrial catalog, product catalog, catalogue, industrial products

active-catalog/active-catalog.php Passed 13 tests

"Active Catalog" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
AC Product Catalog for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,119 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6897.14%
▷ Anonymous functions22.86%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/placeholder-image.png2.29KB2.20KB▼ 3.76%
assets/images/favicon.png2.93KB0.23KB▼ 92.08%
assets/images/sku-icon.png1.31KB0.50KB▼ 62.18%