62% kaboom-send-secrets

Code Review | Send Secrets By Kaboom

WordPress plugin Send Secrets By Kaboom scored62%from 54 tests.

About plugin

  • Plugin page: kaboom-send-secrets
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 21, 2019
  • Latest release: Oct 21, 2019
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: kaboomwebsite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /515 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.92ms] Passed 4 tests

A check of server-side resources used by Send Secrets By Kaboom
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.54 ▼2.76
Dashboard /wp-admin3.33 ▲0.0250.40 ▼4.94
Posts /wp-admin/edit.php3.38 ▲0.0249.56 ▼3.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.40 ▼8.28
Media Library /wp-admin/upload.php3.25 ▲0.0241.02 ▲4.06
Kaboom /wp-admin/admin.php?page=kaboom3.2335.32

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables
wp_stand_alone_send_secret
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
send_secrets_only_admin
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Send Secrets By Kaboom
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.24 ▼0.071.77 ▲0.0241.72 ▼2.84
Dashboard /wp-admin2,273 ▲965.60 ▲0.0482.83 ▼23.0877.67 ▲28.73
Posts /wp-admin/edit.php2,181 ▲811.99 ▼0.0138.80 ▲1.6534.08 ▼0.68
Add New Post /wp-admin/post-new.php1,604 ▲7323.06 ▼0.37767.75 ▲93.4271.24 ▲17.17
Media Library /wp-admin/upload.php1,469 ▲694.24 ▲0.03112.40 ▲13.6375.69 ▲29.83
Kaboom /wp-admin/admin.php?page=kaboom1,0732.0227.2667.42
Send Secrets /wp-admin/admin.php?page=Send Secrets9782.0229.3052.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_stand_alone_send_secret
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • send_secrets_only_admin
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/kaboom-send-secrets/send-secrets-by-kaboom.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kaboom-send-secrets/view/stand_alone_form.php:26

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=Send Secrets
    • > Network (severe)
    wp-content/plugins/kaboom-send-secrets/view/script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: send secrets, kaboom, secure, send passwords

kaboom-send-secrets/send-secrets-by-kaboom.php 77% from 13 tests

The primary PHP file in "Send Secrets By Kaboom" version 1.0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kaboom-send-secrets.php" instead of "send-secrets-by-kaboom.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Success! There were no dangerous files found in this plugin836 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG222378
PHP63023357
CSS1314101

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.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%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/send-secrets.png16.43KB6.72KB▼ 59.11%