84% dbpcloudwp

Code Review | DBP Cloud WP Plugin

WordPress plugin DBP Cloud WP Plugin scored84%from 54 tests.

About plugin

  • Plugin page: dbpcloudwp
  • Plugin version: 0.1.6
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: Feb 26, 2020
  • Latest release: Jun 12, 2022
  • Number of updates: 11
  • Update frequency: every 76.2 days
  • Top authors: caronima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.63MB] [CPU: ▼18.05ms] Passed 4 tests

An overview of server-side resources used by DBP Cloud WP Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.34 ▲2.12
Dashboard /wp-admin3.36 ▲0.0647.96 ▲0.10
Posts /wp-admin/edit.php3.41 ▲0.0548.25 ▼3.37
Add New Post /wp-admin/post-new.php3.25 ▼2.6337.70 ▼71.04
Media Library /wp-admin/upload.php3.28 ▲0.0539.75 ▲8.94
Index /wp-admin/admin.php?page=dbpcloudwp3.2529.98
Print Design /wp-admin/admin.php?page=dbpcloudwp-css_typesetting3.2230.36
Spreadsheet /wp-admin/admin.php?page=dbpcloudwp-spreadsheet3.2232.46
CSV/JSON Import /wp-admin/admin.php?page=dbpcloudwp-importer3.2227.94
User Settings /wp-admin/admin.php?page=dbpcloudwp-user3.2530.43
Table View /wp-admin/admin.php?page=dbpcloudwp-table_view3.2461.64

Server storage [IO: ▲0.10MB] [DB: ▲0.12MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for DBP Cloud WP Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,080 ▲33413.28 ▼1.104.33 ▲2.6048.76 ▲2.93
Dashboard /wp-admin2,483 ▲2985.85 ▲0.04106.59 ▼9.7141.72 ▼10.74
Posts /wp-admin/edit.php2,138 ▲492.04 ▲0.0440.61 ▲4.4735.96 ▼2.61
Add New Post /wp-admin/post-new.php1,552 ▲3323.49 ▲0.26714.49 ▲51.3763.32 ▲10.16
Media Library /wp-admin/upload.php1,437 ▲554.23 ▲0.07107.94 ▲11.3846.41 ▲4.91
Index /wp-admin/admin.php?page=dbpcloudwp1,0342.0331.6251.64
Print Design /wp-admin/admin.php?page=dbpcloudwp-css_typesetting1,0382.0327.0542.41
Spreadsheet /wp-admin/admin.php?page=dbpcloudwp-spreadsheet1,0392.0522.5839.04
CSV/JSON Import /wp-admin/admin.php?page=dbpcloudwp-importer1,0162.0724.2033.46
User Settings /wp-admin/admin.php?page=dbpcloudwp-user3,0339.91106.52152.85
Table View /wp-admin/admin.php?page=dbpcloudwp-table_view1,0362.0623.2338.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.12MB] 75% 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 successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=dbpcloudwp-table_view
    • > Notice in wp-content/plugins/dbpcloudwp/includes/class.dbpcloudwp-interface.php+100
    Undefined variable: ccc_dataset_flag
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=dbpcloudwp-table_view
    • > Notice in wp-content/plugins/dbpcloudwp/includes/class.dbpcloudwp-interface.php+199
    Undefined variable: wp_rest_namespace_error

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

dbpcloudwp/dbpcloudwp.php 92% from 13 tests

"DBP Cloud WP Plugin" version 0.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 263 characters long)

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
No dangerous file extensions were detected1,317 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP11106134781
CSS3113268
PO File17391236
SVG20121
JavaScript21010
JSON1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.43
▷ Minimum class complexity2.00
▷ Maximum class complexity23.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions110.00%
▷ Anonymous functions990.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin