10% dbwd-bookmark-page

Code Review | DBWD Bookmark Page

WordPress plugin DBWD Bookmark Page scored10%from 54 tests.

About plugin

  • Plugin page: dbwd-bookmark-page
  • Plugin version: 4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8
  • WordPress version: 6.3.1
  • First release: Jan 25, 2013
  • Latest release: Dec 17, 2013
  • Number of updates: 52
  • Update frequency: every 6.3 days
  • Top authors: Debra Berube (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /7,714 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method DBWD_Bookmark_Page_Lite::setDefaultData() should not be called statically

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

Analyzing server-side resources used by DBWD Bookmark Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.99 ▲0.36
Dashboard /wp-admin3.32 ▼0.0347.69 ▼15.71
Posts /wp-admin/edit.php3.37 ▲0.0148.01 ▼1.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.13 ▼13.53
Media Library /wp-admin/upload.php3.24 ▲0.0139.80 ▲2.61
Bookmark Lite /wp-admin/admin.php?page=DBWD_Bookmark_Page_Lite3.1832.43
DBWD Software /wp-admin/admin.php?page=dbwd-software3.1831.20

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
DBWD_Bookmark_Page_Lite
DBWD_Menu_Control
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for DBWD Bookmark Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.72 ▲0.301.67 ▼0.1942.43 ▲0.04
Dashboard /wp-admin2,220 ▲405.52 ▼0.1590.81 ▼1.7274.18 ▲30.89
Posts /wp-admin/edit.php2,128 ▲251.97 ▲0.0338.47 ▲2.8233.67 ▼0.29
Add New Post /wp-admin/post-new.php1,698 ▲17222.27 ▼0.87764.42 ▲130.9264.99 ▲19.62
Media Library /wp-admin/upload.php1,422 ▲224.16 ▼0.05111.23 ▲3.0373.66 ▲21.52
Bookmark Lite /wp-admin/admin.php?page=DBWD_Bookmark_Page_Lite1,2001.8728.0573.53
DBWD Software /wp-admin/admin.php?page=dbwd-software8062.1923.6624.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method DBWD_Bookmark_Page_Lite::deactivationMenuControl() should not be called statically
  • The uninstall procedure has failed, leaving 8 options in the database
    • DBWD_Bookmark_Page_Lite
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • DBWD_Menu_Control

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=DBWD_Bookmark_Page_Lite
    • > Deprecated in wp-content/plugins/dbwd-bookmark-page/DBWD Bookmark.php+316
    Non-static method DBWD_Bookmark_Page_Lite::data_save() should not be called statically
    • > GET request to /wp-admin/admin.php?page=dbwd-software
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method DBWD_Bookmark_Page_Lite::DBWD_custom_menu_page() should not be called statically

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

dbwd-bookmark-page/DBWD Bookmark.php 92% from 13 tests

This is the main PHP file of "DBWD Bookmark Page" version 4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dbwd-bookmark-page.php" instead of "DBWD Bookmark.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin880 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1858465
CSS15818351
JavaScript393664

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods433.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gifs/favicon.png0.40KB0.41KB0.00%
screenshot-1.png147.66KB44.76KB▼ 69.69%