84% digital-blasphemy-widget

Code Review | Digital Blasphemy Widget

WordPress plugin Digital Blasphemy Widget scored84%from 54 tests.

About plugin

  • Plugin page: digital-blasphemy...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Jul 8, 2014
  • Latest release: May 13, 2019
  • Number of updates: 13
  • Update frequency: every 136.2 days
  • Top authors: topher1kenobe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,828 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.05MB] [CPU: ▼5.65ms] Passed 4 tests

An overview of server-side resources used by Digital Blasphemy Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.06 ▼5.04
Dashboard /wp-admin3.35 ▲0.0549.70 ▼9.17
Posts /wp-admin/edit.php3.47 ▲0.1153.61 ▲1.37
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.71 ▼9.76
Media Library /wp-admin/upload.php3.28 ▲0.0538.49 ▲3.40

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_digital-blasphemy-widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Digital Blasphemy Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.211.83 ▲0.0643.20 ▼1.09
Dashboard /wp-admin2,203 ▲155.79 ▼0.07103.19 ▼6.0439.09 ▼7.35
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0740.60 ▲2.8837.01 ▲3.15
Add New Post /wp-admin/post-new.php1,533 ▼023.27 ▼0.28656.24 ▼25.8663.86 ▲4.42
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.11102.41 ▼21.9646.21 ▼2.90

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_digital-blasphemy-widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/digital-blasphemy-widget/digital-blasphemy-widget.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/digital-blasphemy-widget/includes/make-widget.class.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

digital-blasphemy-widget/digital-blasphemy-widget.php Passed 13 tests

Analyzing the main PHP file in "Digital Blasphemy Widget" version 1.3
55 characters long description:
Creates a widget for rendering a variety of DB content.

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
Everything looks great! No dangerous files found in this plugin207 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4113120207

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.67
▷ Minimum class complexity5.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods956.25%
▷ Protected methods00.00%
▷ Private methods743.75%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected