84% the-dude

Code Review | The Dude

WordPress plugin The Dude scored84%from 54 tests.

About plugin

  • Plugin page: the-dude
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Dec 9, 2021
  • Number of updates: 12
  • Update frequency: every 207.3 days
  • Top authors: kosvrouvas (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20+ active /1,487 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.72ms] Passed 4 tests

An overview of server-side resources used by The Dude
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.96 ▼1.35
Dashboard /wp-admin3.31 ▼0.0444.13 ▼10.76
Posts /wp-admin/edit.php3.36 ▲0.0044.34 ▲1.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.67 ▼20.40
Media Library /wp-admin/upload.php3.23 ▲0.0036.95 ▲4.06

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by The Dude
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.20 ▼0.361.65 ▲0.0143.32 ▼0.01
Dashboard /wp-admin2,200 ▲205.49 ▼0.1279.91 ▼4.5041.51 ▲4.74
Posts /wp-admin/edit.php2,105 ▲52.00 ▼0.0233.30 ▼7.9835.74 ▼1.81
Add New Post /wp-admin/post-new.php1,600 ▲6522.21 ▲3.94690.48 ▲71.2840.65 ▼17.85
Media Library /wp-admin/upload.php1,405 ▲24.18 ▼0.0194.89 ▼5.0142.47 ▼0.80

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 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/the-dude/dude.php:71

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: admin area, his dudeness, humor, el duderino, fun...

the-dude/dude.php 92% from 13 tests

This is the main PHP file of "The Dude" version 0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-dude.php" instead of "dude.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin64 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192064

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin