72% plugin-groups

Code Review | Plugin Groups

WordPress plugin Plugin Groups scored72%from 54 tests.

About plugin

  • Plugin page: plugin-groups
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Jan 26, 2022
  • Number of updates: 42
  • Update frequency: every 59.0 days
  • Top authors: Desertsnowman (95.24%)dlcramer (7.14%)

Code review

54 tests

User reviews

29 reviews

Install metrics

1,000+ active /20,363 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼5.66MB] [CPU: ▼1,181,993.59ms] Passed 4 tests

A check of server-side resources used by Plugin Groups
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /26.96 ▲23.454,735,716.53 ▲4,735,674.65
Dashboard /wp-admin3.57 ▼23.3752.63 ▼4,727,967.33
Posts /wp-admin/edit.php3.69 ▲0.2953.45 ▲5.37
Add New Post /wp-admin/post-new.php6.16 ▲0.2390.27 ▼16.66
Media Library /wp-admin/upload.php3.50 ▲0.2241.72 ▲4.27
Plugin Groups /wp-admin/plugins.php?page=plugin-groups3.5739.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
_plugin_groups_version

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Groups
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.09 ▼0.551.84 ▲0.2542.99 ▲0.19
Dashboard /wp-admin2,199 ▲185.63 ▼0.0283.44 ▼23.3938.63 ▼7.55
Posts /wp-admin/edit.php2,101 ▲12.07 ▲0.1135.88 ▼3.9136.03 ▼3.09
Add New Post /wp-admin/post-new.php1,529 ▲123.13 ▲0.15659.50 ▼31.7651.98 ▲1.07
Media Library /wp-admin/upload.php1,404 ▲74.30 ▲0.1297.68 ▼4.9045.53 ▼0.20
Plugin Groups /wp-admin/plugins.php?page=plugin-groups9632.5245.3239.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • _plugin_groups_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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
Please fix the following server-side errors
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugin-groups
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugin-groups
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/plugin-groups/includes/main.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Plugin_Groups\\add_action() in wp-content/plugins/plugin-groups/bootstrap.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #7, #8 in plugin-groups/assets to your readme.txt
You can take inspiration from this readme.txt

plugin-groups/plugincore.php 92% from 13 tests

"Plugin Groups" version 2.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("plugin-groups.php" instead of "plugincore.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin902 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12245556880
PO File10015
JavaScript4004
CSS2003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity22.80
▷ Minimum class complexity2.00
▷ Maximum class complexity91.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods64
▷ Static methods710.94%
▷ Public methods4570.31%
▷ Protected methods1929.69%
▷ Private methods00.00%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin