78% balidrop

Code Review | Balidrop

WordPress plugin Balidrop scored78%from 54 tests.

About plugin

  • Plugin page: balidrop
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6.2
  • WordPress version: 6.3.1
  • First release: Mar 8, 2021
  • Latest release: Mar 16, 2021
  • Number of updates: 12
  • Update frequency: every 0.9 days
  • Top authors: 17feia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /499 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Balidrop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.82 ▼5.17
Dashboard /wp-admin3.31 ▲0.0148.27 ▼8.98
Posts /wp-admin/edit.php3.36 ▲0.0151.75 ▲1.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.87 ▼15.56
Media Library /wp-admin/upload.php3.23 ▲0.0135.33 ▼2.98

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Balidrop: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼0.971.84 ▼0.0642.10 ▲1.61
Dashboard /wp-admin2,210 ▲195.89 ▲1.04111.19 ▲4.1338.39 ▼3.36
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0239.41 ▲0.2337.56 ▲2.10
Add New Post /wp-admin/post-new.php1,523 ▲423.50 ▲0.09664.56 ▼11.0163.28 ▲10.37
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0796.52 ▼20.1646.56 ▼2.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/balidrop/pages/product/product.php
    • > /wp-content/plugins/balidrop/balidrop.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/balidrop/includes/core/core.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
  • Screenshots: A description for screenshot #1 is missing in balidrop/assets to your readme.txt
You can take inspiration from this readme.txt

balidrop/balidrop.php 92% from 13 tests

The principal PHP file in "Balidrop" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Success! There were no dangerous files found in this plugin1,412 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP519629521
JavaScript35927338
SVG100288
CSS33325233
Markdown116032

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity22.50
▷ Minimum class complexity18.00
▷ Maximum class complexity27.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin