84% active-catalog

Code Review | Active Catalog

WordPress plugin Active Catalog scored84%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: 6.3.1
  • 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 /1,162 total downloads

Benchmarks

Plugin footprint 83% from 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: ▲3.06ms] Passed 4 tests

This is a short check of server-side resources used by Active Catalog
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3953.25 ▲11.98
Dashboard /wp-admin3.80 ▲0.4558.33 ▼2.29
Posts /wp-admin/edit.php3.83 ▲0.4769.52 ▲26.86
Add New Post /wp-admin/post-new.php6.44 ▲0.5594.41 ▼10.75
Media Library /wp-admin/upload.php3.62 ▲0.3848.10 ▲13.28
Categories /wp-admin/edit-tags.php?taxonomy=ac_product_cat&post_type=ac_product3.6552.67
Settings /wp-admin/edit.php?post_type=ac_product&page=catalog-settings3.6142.62
Add new /wp-admin/post-new.php?post_type=ac_product6.4394.62
Products /wp-admin/edit.php?post_type=ac_product3.6954.17
Search results /wp-admin/options.php?page=ac-search3.6346.05
Tags /wp-admin/edit-tags.php?taxonomy=ac_product_tag&post_type=ac_product3.6546.83
Delete & transfer /wp-admin/admin.php?page=delete_transfer3.6246.52

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Active Catalog
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,031 ▲28516.80 ▲2.422.16 ▲0.3042.33 ▼0.83
Dashboard /wp-admin2,435 ▲2447.96 ▲2.06147.09 ▲32.4548.26 ▲4.46
Posts /wp-admin/edit.php2,310 ▲2185.09 ▲3.0771.00 ▲27.6633.74 ▼3.50
Add New Post /wp-admin/post-new.php1,729 ▲18725.55 ▲7.46696.48 ▲45.7737.26 ▼21.97
Media Library /wp-admin/upload.php1,446 ▲585.16 ▲0.99101.89 ▲2.3545.10 ▲3.08
Categories /wp-admin/edit-tags.php?taxonomy=ac_product_cat&post_type=ac_product1,4975.0954.6831.52
Settings /wp-admin/edit.php?post_type=ac_product&page=catalog-settings1,0434.7049.9824.54
Add new /wp-admin/post-new.php?post_type=ac_product6,38120.94847.2546.33
Products /wp-admin/edit.php?post_type=ac_product1,4485.0757.3928.20
Search results /wp-admin/options.php?page=ac-search1,0184.7649.7025.22
Tags /wp-admin/edit-tags.php?taxonomy=ac_product_tag&post_type=ac_product1,4614.8751.8932.92
Delete & transfer /wp-admin/admin.php?page=delete_transfer9754.7750.7924.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: product catalog, industrial catalog, catalog, catalogue, industrial products

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

Analyzing the main PHP file in "Active Catalog" version 1.0
32 characters long description:
AC Product Catalog for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,119 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP363683392,599
JavaScript4222821,305
CSS5223291,175
Markdown116040

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions70
▷ Named functions6897.14%
▷ Anonymous functions22.86%
Constants5
▷ Global constants5100.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
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/sku-icon.png1.31KB0.50KB▼ 62.18%
assets/images/placeholder-image.png2.29KB2.20KB▼ 3.76%
assets/images/favicon.png2.93KB0.23KB▼ 92.08%