84% edh-shop-categories

Code Review | EDH Shop Categories

WordPress plugin EDH Shop Categories scored84%from 54 tests.

About plugin

  • Plugin page: edh-shop-categories
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2023
  • Latest release: Apr 6, 2023
  • Number of updates: 4
  • Update frequency: every 5.5 days
  • Top authors: encodedothost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /132 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.85ms] Passed 4 tests

A check of server-side resources used by EDH Shop Categories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.70 ▼1.21
Dashboard /wp-admin3.31 ▲0.0047.23 ▼1.79
Posts /wp-admin/edit.php3.36 ▲0.0041.36 ▼6.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.53 ▼22.06
Media Library /wp-admin/upload.php3.23 ▲0.0032.43 ▼1.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by EDH Shop Categories
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.80 ▲0.431.72 ▼0.0344.19 ▲0.62
Dashboard /wp-admin2,206 ▲184.88 ▼0.98110.15 ▲4.4742.28 ▼1.06
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.0236.48 ▲2.0131.69 ▼4.99
Add New Post /wp-admin/post-new.php1,514 ▼017.46 ▼0.04673.74 ▼0.6245.16 ▼9.73
Media Library /wp-admin/upload.php1,382 ▼34.22 ▼0.0593.74 ▼5.1442.10 ▼2.04

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/edh-shop-categories/edh-shop-categories.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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: categories, woocommerce

edh-shop-categories/edh-shop-categories.php 92% from 13 tests

The main PHP file in "EDH Shop Categories" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected60 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP172637
CSS15923

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png6.17KB3.53KB▼ 42.85%
assets/banner-772x250.png40.73KB17.29KB▼ 57.56%
assets/screenshot-1.png71.48KB24.39KB▼ 65.87%