78% brader-kits

Code Review | Brader Kits

WordPress plugin Brader Kits scored78%from 54 tests.

About plugin

  • Plugin page: brader-kits
  • Plugin version: 21.8.15
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2020
  • Latest release: Aug 15, 2021
  • Number of updates: 14
  • Update frequency: every 25.6 days
  • Top authors: sutanto1010 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.46ms] Passed 4 tests

A check of server-side resources used by Brader Kits
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1135.51 ▼4.81
Dashboard /wp-admin3.41 ▲0.1142.71 ▼7.00
Posts /wp-admin/edit.php3.53 ▲0.1748.65 ▲3.28
Add New Post /wp-admin/post-new.php5.99 ▲0.1080.61 ▼17.24
Media Library /wp-admin/upload.php3.34 ▲0.1033.81 ▼0.78
Brader Kits /wp-admin/admin.php?page=brader-kits3.3235.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Brader Kits
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲13714.09 ▼0.324.94 ▲3.0941.66 ▼7.01
Dashboard /wp-admin2,203 ▲155.76 ▲0.73104.28 ▼13.3340.39 ▼4.49
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0138.93 ▲2.0135.50 ▼3.09
Add New Post /wp-admin/post-new.php1,535 ▲2123.34 ▲5.91668.61 ▲36.6053.83 ▲3.86
Media Library /wp-admin/upload.php1,391 ▲94.21 ▲0.0996.70 ▼1.2046.08 ▲3.58
Brader Kits /wp-admin/admin.php?page=brader-kits8606.27131.9067.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/brader-kits/includes/class-brader-kits.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=brader-kits
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=brader-kits#/ - Access to XMLHttpRequest at 'https://api.brader.id/user/me/v1?origin=http:%2F%2Fwp.com' from origin '' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=brader-kits
    • > Network (severe)
    https://api.brader.id/user/me/v1?origin=http:%2F%2Fwp.com - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=brader-kits
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=brader-kits#/ - Access to XMLHttpRequest at 'https://api.brader.id/team/member/v1?origin=http:%2F%2Fwp.com' from origin '' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=brader-kits
    • > Network (severe)
    https://api.brader.id/team/member/v1?origin=http:%2F%2Fwp.com - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
  • Requires php: Invalid version format
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in brader-kits/assets to your readme.txt
The official readme.txt might help

brader-kits/brader-kits.php Passed 13 tests

This is the main PHP file of "Brader Kits" version 21.8.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Set of tool-kits that can extend your WooCommerce Store

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected732 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP1311059549
JavaScript84230160
HTML20117
CSS80126

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.22
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3581.40%
▷ Protected methods00.00%
▷ Private methods818.60%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin