84% plugins-in-groups

Code Review | Plugins In Groups

WordPress plugin Plugins In Groups scored84%from 54 tests.

About plugin

  • Plugin page: plugins-in-groups
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.5
  • WordPress version: 6.3.1
  • First release: May 21, 2018
  • Latest release: Sep 5, 2018
  • Number of updates: 4
  • Update frequency: every 28.0 days
  • Top authors: karlosky (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Plugins In Groups
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0538.44 ▼1.33
Dashboard /wp-admin3.36 ▲0.0246.92 ▼11.52
Posts /wp-admin/edit.php3.41 ▲0.0649.67 ▲2.90
Add New Post /wp-admin/post-new.php5.96 ▲0.0883.62 ▼9.40
Media Library /wp-admin/upload.php3.28 ▲0.0633.27 ▼0.74

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Plugins In Groups
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.66 ▼0.954.66 ▲2.8144.85 ▼4.90
Dashboard /wp-admin2,213 ▲224.86 ▼0.05102.94 ▲0.9139.09 ▼4.17
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0236.73 ▼1.9833.29 ▲1.82
Add New Post /wp-admin/post-new.php1,519 ▼1423.02 ▼0.28633.71 ▼47.0056.56 ▲9.99
Media Library /wp-admin/upload.php1,386 ▼24.28 ▲0.0897.94 ▼4.1442.29 ▼3.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: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/plugins-in-groups/plugins-in-groups.php:281

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: plugin groups, plugin tags, plugins groups, plugins, plugin categories...

plugins-in-groups/plugins-in-groups.php Passed 13 tests

The main PHP file in "Plugins In Groups" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
Keep your plugins in the groups. Sort them by tags. Keep your plugins page clear and manage them in bulk.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected320 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12764194
JavaScript1131572
CSS17045
Markdown1309

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin