71% wordpress-data-guards

Code Review | Wordpress Data Guard [Website Security]

WordPress plugin Wordpress Data Guard [Website Security] scored71%from 54 tests.

About plugin

  • Plugin page: wordpress-data-gu...
  • Plugin version: 8...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 4, 2012
  • Latest release: Mar 3, 2018
  • Number of updates: 143
  • Update frequency: every 15.7 days
  • Top authors: sindhi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /14,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Wordpress Data Guard [Website Security]
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0731.42 ▼13.69
Dashboard /wp-admin3.31 ▲0.0152.29 ▲1.91
Posts /wp-admin/edit.php3.36 ▲0.0145.17 ▼0.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.79 ▼6.42
Media Library /wp-admin/upload.php3.23 ▲0.0137.42 ▲1.03

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Wordpress Data Guard [Website Security]: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲14913.94 ▼0.259.16 ▲7.1244.88 ▼0.73
Dashboard /wp-admin2,210 ▲225.86 ▼0.02108.68 ▼0.9943.33 ▼3.16
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0235.75 ▼2.8032.61 ▲0.46
Add New Post /wp-admin/post-new.php1,532 ▲1123.55 ▲0.29657.28 ▼35.1551.31 ▼10.92
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.0595.14 ▼15.7141.39 ▼6.27
Wordpress Data Guard /wp-admin/wordpress-data-guard.php260.440.0813.59

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wordpress-data-guards/index.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wordpress-data-guards/wordpress-data-guard.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/wordpress-data-guard.php
    • > Network (severe)
    wp-admin/wordpress-data-guard.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (Settings Page) image required
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

wordpress-data-guards/wordpress-data-guard.php 77% from 13 tests

The main file in "Wordpress Data Guard [Website Security]" v. 8... serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wordpress-data-guards.php" instead of "wordpress-data-guard.php")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "8...")
  • Description: The description should be shorter than 140 characters (currently 665 characters long)

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
Everything looks great! No dangerous files found in this plugin204 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21322195
JavaScript1109

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
buy_wordpress_data_guard_pro.png62.24KB17.20KB▼ 72.36%