10% obd-bigdata

Code Review | WP OBD

WordPress plugin WP OBD scored10%from 54 tests.

About plugin

  • Plugin page: obd-bigdata
  • Plugin version: 1.11.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Sep 10, 2021
  • Latest release: Sep 10, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: onexin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /312 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5643
    File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.

Server metrics [RAM: ▼0.93MB] [CPU: ▼40.16ms] Passed 4 tests

Analyzing server-side resources used by WP OBD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.89 ▼11.30
Dashboard /wp-admin3.01 ▼0.2923.22 ▼34.05
Posts /wp-admin/edit.php3.01 ▼0.3527.34 ▼28.28
Add New Post /wp-admin/post-new.php3.01 ▼2.8824.74 ▼81.14
Media Library /wp-admin/upload.php3.01 ▼0.2224.13 ▼17.16

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables
wp_plugin_onexin_bigdata
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP OBD
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.26 ▲0.151.79 ▲0.0143.99 ▲1.15
Dashboard /wp-admin2,199 ▲255.47 ▼0.1886.72 ▼3.0040.20 ▼1.68
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0436.32 ▼2.1233.02 ▼2.30
Add New Post /wp-admin/post-new.php1,534 ▲623.15 ▲0.12675.77 ▼28.9462.29 ▲10.37
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.0096.11 ▼16.4241.91 ▼6.48
OBD BigData /wp-admin/onexin-bigdata.php260.420.2013.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie tables detected upon uninstall: 1 table
    • wp_plugin_onexin_bigdata
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 13× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/obd-bigdata/soeasy/publish.portal2.php
    • > /wp-content/plugins/obd-bigdata/onexin_bigdata.function.php
    • > /wp-content/plugins/obd-bigdata/load.wordpress.php
    • > /wp-content/plugins/obd-bigdata/api.php
    • > /wp-content/plugins/obd-bigdata/index.php
    • > /wp-content/plugins/obd-bigdata/tpl/manage.tpl.php
    • > /wp-content/plugins/obd-bigdata/load.config.php
    • > /wp-content/plugins/obd-bigdata/tpl/doing.tpl.php
    • > /wp-content/plugins/obd-bigdata/onexin_bigdata.inc.php
    • > /wp-content/plugins/obd-bigdata/tpl/stats.tpl.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/obd-bigdata/onexin-bigdata.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/onexin-bigdata.php
    • > Network (severe)
    wp-admin/onexin-bigdata.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "none"
  • Plugin Name: Please specify the plugin name on the first line ( === obd-bigdata === )
The official readme.txt might help

obd-bigdata/onexin-bigdata.php 85% from 13 tests

The entry point to "WP OBD" version 1.11.10 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("obd-bigdata.php" instead of "onexin-bigdata.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 276 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,255 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP142082681,017
PO File2102108238
HTML1100

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin