84% group-category-creator

Code Review | Group category creator

WordPress plugin Group category creator scored84%from 54 tests.

About plugin

  • Plugin page: group-category-cr...
  • Plugin version: 1.3.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8.3
  • WordPress version: 6.3.1
  • First release: May 26, 2019
  • Latest release: Jan 21, 2022
  • Number of updates: 16
  • Update frequency: every 63.1 days
  • Top authors: mjkhajeh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,276 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Group category creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.67 ▼0.24
Dashboard /wp-admin3.36 ▲0.0549.48 ▲0.02
Posts /wp-admin/edit.php3.41 ▲0.0550.69 ▲0.04
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.63 ▲7.95
Media Library /wp-admin/upload.php3.28 ▲0.0535.71 ▲2.22

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Group category creator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.51 ▼0.891.78 ▼0.0743.25 ▲1.99
Dashboard /wp-admin2,225 ▲404.78 ▼0.10112.05 ▲3.5144.35 ▲2.82
Posts /wp-admin/edit.php2,108 ▲192.05 ▲0.0441.99 ▼0.2736.72 ▼1.02
Add New Post /wp-admin/post-new.php1,546 ▲1823.18 ▼0.10575.92 ▼132.3956.35 ▲2.15
Media Library /wp-admin/upload.php1,407 ▲164.21 ▼0.06101.08 ▲1.8440.32 ▼1.77

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mjgcc\\Backend\\add_action() in wp-content/plugins/group-category-creator/admin/menu.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

group-category-creator/group-category-creator.php 92% from 13 tests

The primary PHP file in "Group category creator" version 1.3.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin310 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23128244
PO File1202362
JavaScript1004

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity21.50
▷ Minimum class complexity6.00
▷ Maximum class complexity37.00
Average method complexity5.10
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin