78% bdroppy

Code Review | BDroppy

WordPress plugin BDroppy scored78%from 54 tests.

About plugin

  • Plugin page: bdroppy
  • Plugin version: 2.7.41
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2020
  • Latest release: Nov 29, 2022
  • Number of updates: 124
  • Update frequency: every 8.2 days
  • Top authors: avalas (96.77%)bdroppy (4.03%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /31,464 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by BDroppy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.83 ▲10.82
Dashboard /wp-admin3.31 ▲0.0044.84 ▼5.95
Posts /wp-admin/edit.php3.36 ▲0.0045.31 ▼4.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.39 ▼8.40
Media Library /wp-admin/upload.php3.23 ▲0.0038.20 ▲7.34

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BDroppy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.67 ▲0.1140.10 ▼6.65
Dashboard /wp-admin2,198 ▲175.58 ▼0.1484.88 ▼12.5239.27 ▼1.71
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0433.73 ▼0.7434.40 ▼1.16
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▼0.05671.52 ▲17.2451.38 ▼5.75
Media Library /wp-admin/upload.php1,400 ▲64.18 ▼0.04110.25 ▲16.0348.49 ▲5.88

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bdroppy/src/Pages/Template/Login/index.php
    • > /wp-content/plugins/bdroppy/src/Pages/Template/Catalog/CurrentCatalog.php
  • 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'BDroppy\\Services\\Config\\baseConfig' not found in wp-content/plugins/bdroppy/src/Services/Config/CatalogConfig.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BDroppy\\Services\\System\\SystemLanguage' not found in wp-content/plugins/bdroppy/src/Pages/Template/adminBase.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BDroppy\\Pages\\BasePage' not found in wp-content/plugins/bdroppy/src/Pages/Status.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bdroppy/src/Pages/Template/Catalog/index.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'BDroppy\\Pages\\BasePage' not found in wp-content/plugins/bdroppy/src/Pages/Catalog.php:10
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/bdroppy/src/Pages/Template/Dashboard/queueItems.php on line 1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bdroppy/src/Tools/Tracking/render_footer_tracking_events.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'BDroppy\\Pages\\BasePage' not found in wp-content/plugins/bdroppy/src/Pages/Order.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bdroppy/src/Pages/Template/Setting/index.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bdroppy/src/Tools/Tracking/render_tracking_events.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

bdroppy/bdroppy.php Passed 13 tests

"BDroppy" version 2.7.41's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
14 characters long description:
BDroppy Plugin

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
Good job! No executable or dangerous file extensions detected24,032 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code
CSS32,7931416,215
PHP911,5628077,197
JavaScript8157458606
JSON20014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.66
▷ Minimum class complexity1.00
▷ Maximum class complexity117.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces18
Interfaces0
Traits0
Classes65
▷ Abstract classes23.08%
▷ Concrete classes6396.92%
▷ Final classes00.00%
Methods406
▷ Static methods7618.72%
▷ Public methods34885.71%
▷ Protected methods81.97%
▷ Private methods5012.32%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants27
▷ Global constants829.63%
▷ Class constants1970.37%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/image/logo.png21.19KB12.92KB▼ 39.06%
assets/image/icon.png1.67KB0.49KB▼ 70.85%