10% dakwak

Code Review | Dakwak Widget

WordPress plugin Dakwak Widget scored10%from 54 tests.

About plugin

  • Plugin page: dakwak
  • Plugin version: 0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Oct 15, 2013
  • Latest release: Oct 16, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: kharbat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /763 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/dakwak/dakwak.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_dakwak has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼58.79ms] Passed 4 tests

A check of server-side resources used by Dakwak Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.32 ▼42.34
Dashboard /wp-admin2.08 ▼1.235.45 ▼48.21
Posts /wp-admin/edit.php2.08 ▼1.286.49 ▼44.40
Add New Post /wp-admin/post-new.php2.08 ▼3.816.35 ▼100.22
Media Library /wp-admin/upload.php2.08 ▼1.155.84 ▼31.39

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_wp_dakwak
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Dakwak Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.54 ▲0.612.06 ▲0.3039.79 ▼1.54
Dashboard /wp-admin2,218 ▲125.03 ▼0.8699.54 ▼9.0040.03 ▼4.38
Posts /wp-admin/edit.php2,100 ▲31.98 ▼0.0240.70 ▲0.8335.07 ▲2.30
Add New Post /wp-admin/post-new.php1,526 ▼1417.61 ▼0.78674.13 ▲44.0359.13 ▲5.08
Media Library /wp-admin/upload.php1,403 ▲64.25 ▲0.0098.97 ▼3.5249.41 ▲7.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/dakwak/dakwak.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_dakwak has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_wp_dakwak
    • can_compress_scripts

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
Even though everything seems fine, this is not 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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dakwak/dakwak.php:12

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === dakwak === )
The official readme.txt is a good inspiration

dakwak/dakwak.php Passed 13 tests

The entry point to "Dakwak Widget" version 0.01 is a PHP file that has certain tags in its header comment area
42 characters long description:
Translate your website with crowdsourcing.

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 plugin38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1221438

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png217.26KB69.36KB▼ 68.08%