78% wp-webdoctor

Code Review | WP Webdoctor

WordPress plugin WP Webdoctor scored78%from 54 tests.

About plugin

  • Plugin page: wp-webdoctor
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 13, 2020
  • Latest release: Sep 26, 2022
  • Number of updates: 6
  • Update frequency: every 116.5 days
  • Top authors: ckreg00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /811 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.68ms] Passed 4 tests

This is a short check of server-side resources used by WP Webdoctor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.48 ▼6.22
Dashboard /wp-admin3.31 ▲0.0048.42 ▼10.20
Posts /wp-admin/edit.php3.36 ▲0.0045.07 ▼6.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.97 ▼0.18
Media Library /wp-admin/upload.php3.23 ▲0.0036.12 ▲1.12

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • Illegal file modification found: 59 files (9,337.06KB) outside of "wp-content/plugins/wp-webdoctor/" and "wp-content/uploads/"
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/themes/default/assets/fonts/brand-icons.svg
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/themes/default/assets/fonts/brand-icons.eot
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/semantic.min.css
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/test.css
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/index.html
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/antivirus.php
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/semantic.min.js
    • (new file) siteguarding_tools.php
    • (new file) wp-content/plugins/wp-website-antivirus-protection/wp-website-antivirus-protection/assets/qrcode.js
    • (new file) wp-content/plugins/wp-website-antivirus-protection/tmp/.empty
    • ...
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Webdoctor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.141.80 ▼0.0746.58 ▲3.20
Dashboard /wp-admin2,195 ▲185.58 ▼0.0588.51 ▼11.9439.89 ▼3.32
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0534.88 ▼2.3136.10 ▲0.46
Add New Post /wp-admin/post-new.php1,545 ▲323.21 ▲0.11665.60 ▼14.1652.17 ▼2.87
Media Library /wp-admin/upload.php1,394 ▼94.24 ▲0.0299.78 ▼0.4844.40 ▼2.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-webdoctor/siteguarding_tools.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-webdoctor/wp-webdoctor.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (34 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

wp-webdoctor/wp-webdoctor.php Passed 13 tests

This is the main PHP file of "WP Webdoctor" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
76 characters long description:
Powerful and effective wordpress security and firewall plugin for your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin405 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP210537403
Pascal1002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected