90% brunch-wp

Code Review | Brunch WP

WordPress plugin Brunch WP scored 90% from 54 tests.

About plugin

  • Plugin page: brunch-wp
  • Plugin version: 0.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2021
  • Latest release: Dec 14, 2021
  • Number of updates: 8
  • Update frequency: every 1.8 days
  • Top authors: brunchso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.93ms] Passed 4 tests

This is a short check of server-side resources used by Brunch WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.89 ▲0.18
Dashboard /wp-admin3.32 ▲0.0144.06 ▼3.47
Posts /wp-admin/edit.php3.37 ▲0.0143.45 ▼4.93
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.26 ▼6.32
Media Library /wp-admin/upload.php3.24 ▲0.0133.38 ▼1.00

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Brunch WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10413.29 ▼1.105.78 ▲4.0736.29 ▼4.45
Dashboard /wp-admin2,204 ▲135.84 ▼0.0694.15 ▼10.0540.40 ▼1.76
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0136.91 ▼1.7432.45 ▼0.45
Add New Post /wp-admin/post-new.php1,530 ▲1617.95 ▲0.39629.63 ▼37.5454.94 ▼0.59
Media Library /wp-admin/upload.php1,389 ▼24.23 ▲0.02100.31 ▼1.1843.10 ▼3.85

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

brunch-wp/brunch-wp.php Passed 13 tests

The main PHP script in "Brunch WP" version 0.0.5 is automatically included on every request by WordPress
54 characters long description:
A tiny plugin to add Brunch app links to your recipes.

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 detected237 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP656342101
JavaScript293194
CSS21642

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods14
▷ Static methods17.14%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
There are no PNG files in this plugin