90% grouped-content

Code Review | Grouped Content

WordPress plugin Grouped Content scored90%from 54 tests.

About plugin

  • Plugin page: grouped-content
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2020
  • Latest release: Nov 29, 2022
  • Number of updates: 14
  • Update frequency: every 75.6 days
  • Top authors: michelleblanchette (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,184 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: ▼8.40ms] Passed 4 tests

Analyzing server-side resources used by Grouped Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.08 ▼3.65
Dashboard /wp-admin3.36 ▲0.0548.93 ▼6.27
Posts /wp-admin/edit.php3.41 ▲0.0550.53 ▼5.94
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.81 ▼17.74
Media Library /wp-admin/upload.php3.28 ▲0.0539.92 ▲2.50
Page Groups /wp-admin/edit.php?post_type=page&page=ptc-grouped-content_post-type-page3.3133.29
Create Draft Pages /wp-admin/tools.php?page=ptc-grouped-content_generator3.3138.82

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Grouped Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.17 ▼0.101.73 ▼0.3940.42 ▼10.11
Dashboard /wp-admin2,200 ▲205.64 ▼0.0194.88 ▲5.6942.58 ▲2.75
Posts /wp-admin/edit.php2,108 ▲51.99 ▼0.0037.74 ▼3.0031.98 ▼0.71
Add New Post /wp-admin/post-new.php1,541 ▲1518.08 ▼5.04655.34 ▼43.5476.31 ▲20.04
Media Library /wp-admin/upload.php1,408 ▲114.26 ▲0.06106.75 ▲1.0845.05 ▼5.33
Page Groups /wp-admin/edit.php?post_type=page&page=ptc-grouped-content_post-type-page8121.9927.8929.39
Create Draft Pages /wp-admin/tools.php?page=ptc-grouped-content_generator9572.1726.0160.63

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: page, group, sort, management, content...

grouped-content/grouped-content.php Passed 13 tests

This is the main PHP file of "Grouped Content" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
100 characters long description:
Provides easy access to hierarchical posts' parent page, sibling pages, and child pages in wp-admin.

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
Everything looks great! No dangerous files found in this plugin1,566 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP113766431,458
JavaScript22412105
CSS3003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity28.33
▷ Minimum class complexity19.00
▷ Maximum class complexity41.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods1361.90%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1083.33%
▷ Anonymous functions216.67%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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