90% biscotti

Code Review | Biscotti

WordPress plugin Biscotti scored90%from 54 tests.

About plugin

  • Plugin page: biscotti
  • Plugin version: 2.1.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 10, 2023
  • Latest release: Jul 26, 2023
  • Number of updates: 10
  • Update frequency: every 19.7 days
  • Top authors: boogah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.88ms] Passed 4 tests

Server-side resources used by Biscotti
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.98 ▼1.16
Dashboard /wp-admin3.31 ▲0.0046.09 ▼3.04
Posts /wp-admin/edit.php3.36 ▲0.0046.94 ▲0.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.78 ▲3.31
Media Library /wp-admin/upload.php3.23 ▲0.0034.13 ▼0.07

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Biscotti
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.34 ▼0.911.76 ▼0.4043.03 ▼2.08
Dashboard /wp-admin2,200 ▲125.91 ▲1.0497.03 ▼16.5941.54 ▼4.47
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0340.60 ▲2.4235.12 ▲1.81
Add New Post /wp-admin/post-new.php1,514 ▼3017.75 ▼0.60596.79 ▼39.7860.89 ▼10.05
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.1396.04 ▼3.6041.27 ▼3.02

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
3 plugin tags: login, cookies, profile

biscotti/biscotti.php Passed 13 tests

The main file in "Biscotti" v. 2.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Biscotti makes your user's login cookie a little bit longer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1177075

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin