68% dooodl

Code Review | Dooodl

WordPress plugin Dooodl scored68%from 54 tests.

About plugin

  • Plugin page: dooodl
  • Plugin version: 2.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.4
  • WordPress version: 6.3.1
  • First release: Sep 20, 2009
  • Latest release: Dec 30, 2015
  • Number of updates: 72
  • Update frequency: every 31.9 days
  • Top authors: noCreativity (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /16,571 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.61MB] [CPU: ▼29.63ms] Passed 4 tests

Server-side resources used by Dooodl
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.44 ▲0.9818.87 ▼19.74
Dashboard /wp-admin4.67 ▲1.3728.72 ▼16.75
Posts /wp-admin/edit.php4.67 ▲1.3231.13 ▼14.26
Add New Post /wp-admin/post-new.php4.67 ▼1.2123.46 ▼67.77
Media Library /wp-admin/upload.php4.67 ▲1.4527.02 ▼7.14
Dooodl /wp-admin/admin.php?page=dooodl-overview4.6726.41
You shouldn't see this /wp-admin/admin.php?page=dooodl-dummy-item4.6723.17
Settings /wp-admin/admin.php?page=dooodl-options4.6724.35

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 549 new files
Database: no new tables, 10 new options
New WordPress options
redux-framework-tracking
widget_theysaidso_widget
widget_dooodl_widget
theysaidso_admin_options
dooodl_options
dooodl_version
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Dooodl: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲10414.09 ▼0.261.71 ▼0.1741.13 ▲0.76
Dashboard /wp-admin2,274 ▲975.64 ▲0.0691.05 ▲5.9538.34 ▼2.87
Posts /wp-admin/edit.php2,131 ▲312.01 ▼0.0137.33 ▲0.4739.21 ▲2.35
Add New Post /wp-admin/post-new.php6,642 ▲5,11224.60 ▲1.461,031.63 ▲354.6343.16 ▼17.71
Media Library /wp-admin/upload.php1,425 ▲254.19 ▲0.02106.98 ▲5.3546.23 ▼2.73
Dooodl /wp-admin/admin.php?page=dooodl-overview1,1441.7027.7430.86
You shouldn't see this /wp-admin/admin.php?page=dooodl-dummy-item7811.9924.0022.38
Settings /wp-admin/admin.php?page=dooodl-options3,1736.57194.4338.45

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
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/dooodl/includes/libs/redux-framework/extensions/customizer/extension_customizer.php+291
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • Zombie WordPress options detected upon uninstall: 10 options
    • widget_dooodl_widget
    • widget_recent-comments
    • dooodl_options
    • redux-framework-tracking
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • dooodl_version
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=dooodl-options
    • > Warning in wp-content/plugins/dooodl/includes/libs/redux-framework/extensions/customizer/extension_customizer.php+361
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
    • > GET request to /wp-admin/admin.php?page=dooodl-overview
    • > Notice in wp-content/plugins/dooodl/includes/class.dooodl-table-overview.php+359
    Undefined variable: meta_query
    • > GET request to /wp-admin/admin.php?page=dooodl-overview
    • > Notice in wp-content/plugins/dooodl/includes/class.dooodl-table-overview.php+354
    Undefined variable: actions

SRP 50% from 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
Please fix the following items
  • 57× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dooodl/includes/libs/advanced-custom-fields/core/fields/file.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dooodl/includes/libs/advanced-custom-fields/acf.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dooodl/includes/libs/advanced-custom-fields/core/controllers/everything_fields.php:31
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/dooodl/includes/class.dooodl-table-overview.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dooodl/includes/libs/advanced-custom-fields/core/fields/checkbox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dooodl/includes/libs/advanced-custom-fields/core/controllers/upgrade.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dooodl/includes/libs/advanced-custom-fields/core/fields/wysiwyg.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dooodl/includes/libs/advanced-custom-fields/core/fields/number.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dooodl/includes/libs/advanced-custom-fields/core/fields/relationship.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dooodl/includes/libs/advanced-custom-fields/core/controllers/post.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

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 your attention:
  • Screenshots: Please add an image for screenshot #11 (The Dooodl Dashboard Widget.)
You can take inspiration from this readme.txt

dooodl/Dooodl.php 92% from 13 tests

"Dooodl" version 2.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dooodl.php" instead of "Dooodl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin60,723 lines of code in 407 files:
LanguageFilesBlank linesComment linesLines of code
PHP1276,8518,62620,622
JavaScript1554,5053,74915,148
PO File155,7618,54612,678
CSS481,1385957,346
LESS301871873,317
Sass25301,140
SVG100309
Markdown229070
Bourne Shell124055
JSON20037
HTML1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity30.95
▷ Minimum class complexity1.00
▷ Maximum class complexity751.00
Average method complexity5.99
▷ Minimum method complexity1.00
▷ Maximum method complexity95.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes106
▷ Abstract classes00.00%
▷ Concrete classes106100.00%
▷ Final classes00.00%
Methods636
▷ Static methods274.25%
▷ Public methods62197.64%
▷ Protected methods00.00%
▷ Private methods152.36%
Functions113
▷ Named functions113100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
69 PNG files occupy 0.26MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/libs/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
creator/images/ok.png6.88KB3.93KB▼ 42.90%
includes/libs/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
includes/libs/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
includes/libs/advanced-custom-fields/images/sprite.png5.94KB2.82KB▼ 52.51%