84% simple-catalog-for-woocommerce

Code Review | Simple Catalog for WooCommerce

WordPress plugin Simple Catalog for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: simple-catalog-fo...
  • Plugin version: 1.4.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.3
  • WordPress version: 6.3.1
  • First release: Jul 2, 2016
  • Latest release: Aug 10, 2023
  • Number of updates: 28
  • Update frequency: every 92.7 days
  • Top authors: ahortin (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /17,437 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.43ms] Passed 4 tests

Server-side resources used by Simple Catalog for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.44 ▲2.36
Dashboard /wp-admin3.36 ▲0.0551.09 ▼3.56
Posts /wp-admin/edit.php3.47 ▲0.1148.28 ▼0.61
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.73 ▼12.27
Media Library /wp-admin/upload.php3.28 ▲0.0532.46 ▼1.29

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Catalog for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.15 ▼1.531.62 ▼0.1839.50 ▼3.06
Dashboard /wp-admin2,206 ▲185.85 ▲0.97107.63 ▲2.6041.64 ▼1.31
Posts /wp-admin/edit.php2,092 ▲32.18 ▲0.2039.32 ▼2.2435.33 ▼4.82
Add New Post /wp-admin/post-new.php1,533 ▲1923.29 ▲5.68703.04 ▲66.3763.80 ▲3.36
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0194.46 ▼16.7140.79 ▼5.20

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/simple-catalog-for-woocommerce/simple-catalog-for-woocommerce.php:443

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 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
8 plugin tags: woothemes, woocommerce, catalogue, wordpress ecommerce, ecommerce...

simple-catalog-for-woocommerce/simple-catalog-for-woocommerce.php 85% from 13 tests

The main file in "Simple Catalog for WooCommerce" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "2.6")

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 detected314 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24889314

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin