84% lore-owl-subcat-for-wc

Code Review | Lore Owl SubCat for WC

WordPress plugin Lore Owl SubCat for WC scored84%from 54 tests.

About plugin

  • Plugin page: lore-owl-subcat-f...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4.1
  • WordPress version: 6.3.1
  • First release: May 24, 2020
  • Latest release: Jun 3, 2020
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: lorenzomoio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /421 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Lore Owl SubCat for WC
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.69 ▼8.25
Dashboard /wp-admin3.36 ▲0.0150.70 ▼15.61
Posts /wp-admin/edit.php3.41 ▲0.0549.75 ▼0.47
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.05 ▼23.05
Media Library /wp-admin/upload.php3.28 ▲0.0534.02 ▲3.59

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Lore Owl SubCat for WC
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲15613.58 ▼0.728.25 ▲6.2741.69 ▼2.44
Dashboard /wp-admin2,222 ▲315.88 ▲0.97104.17 ▼13.7538.59 ▼5.58
Posts /wp-admin/edit.php2,102 ▲102.04 ▲0.0039.30 ▲0.0534.60 ▲0.08
Add New Post /wp-admin/post-new.php1,558 ▲2518.49 ▼4.69597.75 ▼89.7066.69 ▲1.31
Media Library /wp-admin/upload.php1,404 ▲164.14 ▼0.0596.13 ▼2.1143.57 ▼0.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lore-owl-subcat-for-wc/lore-owl-subcat-for-wc.php

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: woocommerce, subcategories, owl, carousel, categories...

lore-owl-subcat-for-wc/lore-owl-subcat-for-wc.php Passed 13 tests

The entry point to "Lore Owl SubCat for WC" version 1.0.1 is a PHP file that has certain tags in its header comment area
82 characters long description:
Show an Owl carousel of WooCommerce subcategories outside WooCommerce archive loop

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
No dangerous file extensions were detected242 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24731238
CSS20102
JavaScript1052

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.24
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin