84% customcat-helper

Code Review | CustomCat Helper

WordPress plugin CustomCat Helper scored 84% from 54 tests.

About plugin

  • Plugin page: customcat-helper
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Sep 23, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: jstnpwll (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,097 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.33ms] Passed 4 tests

Analyzing server-side resources used by CustomCat Helper
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1033.81 ▼6.81
Dashboard /wp-admin3.40 ▲0.1046.76 ▲0.68
Posts /wp-admin/edit.php3.51 ▲0.1649.33 ▲3.13
Add New Post /wp-admin/post-new.php5.98 ▲0.1083.92 ▼18.31
Media Library /wp-admin/upload.php3.32 ▲0.0935.49 ▲3.56

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

CustomCat Helper: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.23 ▼1.121.65 ▼0.4741.88 ▼3.58
Dashboard /wp-admin2,200 ▲125.80 ▲0.9294.02 ▼16.5837.41 ▼3.43
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0139.60 ▲2.5733.89 ▼0.39
Add New Post /wp-admin/post-new.php1,533 ▼223.35 ▲0.04655.36 ▼0.1458.29 ▲2.77
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0195.33 ▼4.0943.19 ▲1.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/customcat-helper/customcat-plugin.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

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, ecom, customcat, print on demand

customcat-helper/customcat-plugin.php 92% from 13 tests

The primary PHP file in "CustomCat Helper" version 1.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("customcat-helper.php" instead of "customcat-plugin.php")

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
No dangerous file extensions were detected492 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13728492

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity79.00
▷ Minimum class complexity79.00
▷ Maximum class complexity79.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods30
▷ Static methods1136.67%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
There are no PNG files in this plugin