71% yummi-auto-check-parent-category-category-tree-checklist

Code Review | Parent Category AutoCheck + Category Tree Checklist

WordPress plugin Parent Category AutoCheck + Category Tree Checklist scored 71% from 54 tests.

About plugin

  • Plugin page: yummi-auto-check-...
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.2
  • WordPress version: 5.9.2
  • First release: Oct 14, 2016
  • Latest release: Jun 13, 2019
  • Number of updates: 46
  • Update frequency: every 21.1 days
  • Top authors: evilex (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active / 11,886 total downloads

Benchmarks

Plugin footprint 82% 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.18MB] [CPU: ▼312.05ms] 75% from 4 tests

A check of server-side resources used by Parent Category AutoCheck + Category Tree Checklist
Please take the time to fix the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 816.84ms on /wp-admin/admin.php?page=yummi)
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0757.69 ▲6.62
Dashboard /wp-admin3.49 ▲0.0834.56 ▲0.88
Posts /wp-admin/edit.php3.71 ▲0.0742.06 ▲3.84
Add New Post /wp-admin/post-new.php6.03 ▼0.9374.15 ▼1,247.08
Media Library /wp-admin/upload.php3.36 ▲0.0623.68 ▼5.83
Category AutoCheck /wp-admin/admin.php?page=category_autocheck3.3121.70
Yummi Plugins /wp-admin/admin.php?page=yummi3.63816.84

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
category_children

Browser metrics Passed 4 tests

Parent Category AutoCheck + Category Tree Checklist: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲4415.85 ▲0.195.69 ▼0.452.01 ▼0.35
Dashboard /wp-admin2,925 ▲676.08 ▼0.14120.72 ▼15.61162.81 ▲1.43
Posts /wp-admin/edit.php2,733 ▲423.12 ▼0.1265.10 ▼0.68144.81 ▲0.43
Add New Post /wp-admin/post-new.php1,627 ▼3419.81 ▲3.70405.24 ▼0.54162.90 ▲6.60
Media Library /wp-admin/upload.php1,732 ▲345.50 ▲0.07126.67 ▼15.57208.33 ▲13.90
Category AutoCheck /wp-admin/admin.php?page=category_autocheck1,1442.4353.88184.11
Yummi Plugins /wp-admin/admin.php?page=yummi2,4978.50194.18216.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • category_children

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=category_autocheck
    • > Notice in wp-content/plugins/yummi-auto-check-parent-category-category-tree-checklist/yummi-category-checklist.php+453
    Undefined index: action
    • > GET request to /wp-admin/admin.php?page=category_autocheck
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=category_autocheck
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=yummi
    • > Notice in wp-content/plugins/yummi-auto-check-parent-category-category-tree-checklist/includes/yummi-plugins.php+117
    Undefined variable: tab

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/yummi-auto-check-parent-category-category-tree-checklist/yummi-category-checklist.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/yummi-auto-check-parent-category-category-tree-checklist/includes/yummi-plugins.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=yummi
    • > Network (severe)
    wp-content/plugins/yummi-auto-check-parent-category-category-tree-checklist//css/admin_style.min.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=yummi
    • > Network (severe)
    wp-content/plugins/yummi-auto-check-parent-category-category-tree-checklist//css/hint.min.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=yummi
    • > Network (severe)
    https://www.paypalobjects.com/en_IT/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

yummi-auto-check-parent-category-category-tree-checklist/yummi-category-checklist.php 85% from 13 tests

"Parent Category AutoCheck + Category Tree Checklist" version 1.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("yummi-auto-check-parent-category-category-tree-checklist.php" instead of "yummi-category-checklist.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin486 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP279139464
CSS12022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/dashicons-yummi.png1.81KB0.85KB▼ 52.89%