10% crouton

Code Review | crouton

WordPress plugin crouton scored10%from 54 tests.

About plugin

  • Plugin page: crouton
  • Plugin version: 3.17.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2018
  • Latest release: Nov 28, 2023
  • Number of updates: 144
  • Update frequency: every 13.2 days
  • Top authors: bmltenabled (72.92%)radius314 (24.31%)pjaudiomv (4.17%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /17,157 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/crouton/crouton.php+941
    Undefined index: meeting_data_template

Server metrics [RAM: ▼1.53MB] [CPU: ▼47.40ms] Passed 4 tests

Server-side resources used by crouton
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.45 ▼1.016.11 ▼35.97
Dashboard /wp-admin2.47 ▼0.837.34 ▼42.48
Posts /wp-admin/edit.php2.48 ▼0.887.33 ▼35.10
Add New Post /wp-admin/post-new.php2.47 ▼3.416.84 ▼76.03
Media Library /wp-admin/upload.php2.47 ▼0.767.67 ▼28.92

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 134 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
bmlt_tabs_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for crouton
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.07 ▼0.202.14 ▲0.4243.52 ▼0.27
Dashboard /wp-admin2,202 ▲285.64 ▼0.0195.20 ▲3.0742.27 ▼0.56
Posts /wp-admin/edit.php2,101 ▲12.07 ▲0.0639.24 ▲3.6734.40 ▲3.12
Add New Post /wp-admin/post-new.php1,540 ▲1423.20 ▼0.06672.07 ▲76.0355.55 ▼2.04
Media Library /wp-admin/upload.php1,407 ▲104.20 ▼0.02101.38 ▲1.7746.27 ▼1.01
crouton /wp-admin/crouton.php260.410.1715.90

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
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/crouton/crouton.php+941
    Undefined index: meeting_data_template
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • bmlt_tabs_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/crouton/partials/_instructions.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/crouton/crouton.php:929

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/crouton.php
    • > Network (severe)
    wp-admin/crouton.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: bmlt, na, maps, addiction, meeting list...

crouton/crouton.php Passed 13 tests

The primary PHP file in "crouton" version 3.17.9 is used by WordPress to initiate all plugin functionality
55 characters long description:
A tabbed based display for showing meeting information.

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 detected76,727 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3711,7227,95370,283
CSS265831744,357
PHP346701,323
SVG100288
JSON300188
Handlebars730181
HTML40094
Markdown112013

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity161.00
▷ Minimum class complexity161.00
▷ Maximum class complexity161.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods1753.12%
▷ Protected methods00.00%
▷ Private methods1546.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
31 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/banner_rails.png3.75KB0.14KB▼ 96.27%
css/south-street/images/ui-icons_eeeeee_256x240.png6.85KB4.18KB▼ 38.92%
croutonjs/dist/templates/m5.png6.68KB5.10KB▼ 23.66%
css/south-street/images/ui-icons_847e71_256x240.png4.57KB4.18KB▼ 8.43%
css/chosen-sprite@2x.png0.72KB0.83KB0.00%