84% wpdoodlez

Code Review | WP doodlez

WordPress plugin WP doodlez scored 84% from 54 tests.

About plugin

  • Plugin page: wpdoodlez
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.6
  • WordPress version: 6.3.1
  • First release: Apr 16, 2016
  • Latest release: Jun 17, 2018
  • Number of updates: 24
  • Update frequency: every 33.1 days
  • Top authors: robert_kolatzek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,584 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.32ms] Passed 4 tests

A check of server-side resources used by WP doodlez
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.87 ▼5.02
Dashboard /wp-admin3.34 ▲0.0355.93 ▼5.22
Posts /wp-admin/edit.php3.39 ▲0.0349.03 ▼0.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.28 ▲4.54
Media Library /wp-admin/upload.php3.26 ▲0.0335.79 ▼2.72
Add WPdoodle /wp-admin/post-new.php?post_type=wpdoodle3.4257.75
All WPdoodlez /wp-admin/edit.php?post_type=wpdoodle3.3239.87
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpdoodle3.2539.52

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
category_children
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP doodlez
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲3413.21 ▼0.041.90 ▼0.4741.24 ▼6.84
Dashboard /wp-admin2,237 ▲314.83 ▼0.02104.02 ▼16.1139.92 ▼10.67
Posts /wp-admin/edit.php2,120 ▲312.05 ▲0.0039.08 ▼1.3336.58 ▲2.36
Add New Post /wp-admin/post-new.php1,545 ▲2623.09 ▼0.26719.48 ▲54.6353.46 ▲2.11
Media Library /wp-admin/upload.php1,419 ▲344.21 ▼0.11109.31 ▼11.4447.86 ▼6.24
Add WPdoodle /wp-admin/post-new.php?post_type=wpdoodle2,6287.69198.5171.93
All WPdoodlez /wp-admin/edit.php?post_type=wpdoodle1,1621.9631.3930.06
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpdoodle1,4742.1428.7833.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • category_children
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpd_translate() in wp-content/plugins/wpdoodlez/wpdoodlez_post_type.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wpdoodlez/wpdoodle-template.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdoodlez/WPdoodlez.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wpdoodlez === )
The official readme.txt might help

wpdoodlez/WPdoodlez.php 92% from 13 tests

This is the main PHP file of "WP doodlez" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpdoodlez.php" instead of "WPdoodlez.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
Good job! No executable or dangerous file extensions detected544 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP31950267
PO File35767167
JavaScript11465
CSS27331
Markdown13013
Bourne Shell1101

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin