10% dogo-content-widget

Code Review | DOGO Content Widget

WordPress plugin DOGO Content Widget scored 10% from 54 tests.

About plugin

  • Plugin page: dogo-content-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-3.4.2
  • WordPress version: 5.8.1
  • First release: Nov 6, 2012
  • Latest release: Nov 6, 2012
  • Number of updates: 6
  • Update frequency: every 76.5 days
  • Top authors: dogomedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,048 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/dogo-content-widget/dogo-content-widget.php+383
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼188.01ms] Passed 4 tests

An overview of server-side resources used by DOGO Content Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.985.35 ▼18.57
Dashboard /wp-admin1.76 ▼1.295.50 ▼36.68
Posts /wp-admin/edit.php1.76 ▼1.345.50 ▼40.90
Add New Post /wp-admin/post-new.php1.76 ▼3.674.61 ▼644.46
Media Library /wp-admin/upload.php1.76 ▼1.244.78 ▼30.00

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 3 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for DOGO Content Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10916.24 ▲0.099.72 ▲0.1749.29 ▲0.48
Dashboard /wp-admin2,970 ▲395.96 ▼0.07149.97 ▲2.85107.45 ▼2.90
Posts /wp-admin/edit.php2,739 ▲32.71 ▲0.0072.73 ▲2.9085.45 ▼1.07
Add New Post /wp-admin/post-new.php1,683 ▲10318.80 ▲1.96411.75 ▲11.14114.67 ▲7.94
Media Library /wp-admin/upload.php1,810 ▲35.04 ▲0.03167.82 ▲5.91115.29 ▲0.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/dogo-content-widget/dogo-content-widget.php+383
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 3 options in the database
    • widget_dogobooks_rss_widget
    • widget_dogonews_rss_widget
    • widget_dogomovies_rss_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dogo-content-widget/dogo-content-widget.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 93% 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

dogo-content-widget/dogo-content-widget.php 92% from 13 tests

The principal PHP file in "DOGO Content Widget" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 358 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
Success! There were no dangerous files found in this plugin323 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity5.29
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin