84% dozwpsecure

Code Review | DozWPSecure

WordPress plugin DozWPSecure scored84%from 54 tests.

About plugin

  • Plugin page: dozwpsecure
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2019
  • Latest release: May 24, 2020
  • Number of updates: 9
  • Update frequency: every 46.6 days
  • Top authors: dozty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.46ms] Passed 4 tests

An overview of server-side resources used by DozWPSecure
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1137.87 ▼4.96
Dashboard /wp-admin3.37 ▲0.0749.92 ▼2.56
Posts /wp-admin/edit.php3.49 ▲0.1349.11 ▲1.00
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.46 ▼18.94
Media Library /wp-admin/upload.php3.30 ▲0.0636.15 ▲0.63

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by DozWPSecure
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.17 ▼1.131.58 ▼0.5541.94 ▼2.46
Dashboard /wp-admin2,225 ▲375.86 ▲1.0097.43 ▼18.1638.37 ▼13.46
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0534.31 ▼1.2435.86 ▼1.85
Add New Post /wp-admin/post-new.php1,555 ▲4118.32 ▲0.46631.65 ▲46.2356.90 ▲6.43
Media Library /wp-admin/upload.php1,404 ▲164.19 ▼0.0496.19 ▼0.1342.02 ▲0.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/dozwpsecure/DozWPSecure.php

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

dozwpsecure/DozWPSecure.php 92% from 13 tests

Analyzing the main PHP file in "DozWPSecure" version 1.3
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dozwpsecure.php" instead of "DozWPSecure.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin382 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15851382

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin