80% plugin-grouper

Code Review | Plugin Manager

WordPress plugin Plugin Manager scored80%from 54 tests.

About plugin

  • Plugin page: plugin-grouper
  • Plugin version: 6.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 23, 2015
  • Latest release: May 29, 2018
  • Number of updates: 57
  • Update frequency: every 18.8 days
  • Top authors: sujin2f (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

100+ active /12,435 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼33.94ms] Passed 4 tests

Analyzing server-side resources used by Plugin Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.05 ▲0.94
Dashboard /wp-admin3.26 ▼0.0434.08 ▼25.75
Posts /wp-admin/edit.php3.26 ▼0.0931.95 ▼19.11
Add New Post /wp-admin/post-new.php3.26 ▼2.6228.72 ▼80.43
Media Library /wp-admin/upload.php3.26 ▲0.0329.23 ▼10.46

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.67 ▲0.321.71 ▼0.0144.05 ▲0.89
Dashboard /wp-admin2,216 ▲365.55 ▼0.1588.07 ▼1.9343.65 ▼0.35
Posts /wp-admin/edit.php2,124 ▲271.98 ▼0.0539.28 ▲5.3543.27 ▲5.13
Add New Post /wp-admin/post-new.php1,449 ▼7717.10 ▼6.50571.57 ▼164.0254.53 ▲0.03
Media Library /wp-admin/upload.php1,421 ▲244.20 ▲0.0397.36 ▼21.0442.46 ▼10.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/plugin-grouper/classes/class-all-plugins.php+74
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
4 plugin tags: category manage, plugin, admin, group

plugin-grouper/plugin-grouper.php 92% from 13 tests

"Plugin Manager" version 6.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected12,771 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
JSON2008,961
PHP133817061,393
JavaScript123087471,349
CSS227206587
LESS5105153471
Markdown14010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods79
▷ Static methods3645.57%
▷ Public methods5164.56%
▷ Protected methods22.53%
▷ Private methods2632.91%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants12
▷ Global constants758.33%
▷ Class constants541.67%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected