89% don-security

Code Review | Don Security

WordPress plugin Don Security scored89%from 54 tests.

About plugin

  • Plugin page: don-security
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.4
  • WordPress version: 6.3.1
  • First release: May 16, 2017
  • Latest release: May 17, 2017
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: rodrigodonini (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,270 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.30ms] Passed 4 tests

A check of server-side resources used by Don Security
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.21 ▼0.52
Dashboard /wp-admin3.33 ▲0.0354.37 ▲3.40
Posts /wp-admin/edit.php3.38 ▲0.0350.78 ▼2.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.03 ▼7.63
Media Library /wp-admin/upload.php3.25 ▲0.0335.74 ▼6.49
Don Security /wp-admin/options-general.php?page=don_security_settings_options3.2233.70

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Don Security
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲3614.42 ▼0.182.14 ▲0.0341.26 ▲0.41
Dashboard /wp-admin2,206 ▲325.66 ▲0.0794.31 ▲9.1741.18 ▼5.86
Posts /wp-admin/edit.php2,108 ▲82.00 ▼0.0234.79 ▼3.6733.50 ▼1.52
Add New Post /wp-admin/post-new.php1,533 ▲717.59 ▼0.15667.47 ▼42.9351.65 ▼3.18
Media Library /wp-admin/upload.php1,411 ▲84.23 ▲0.0299.46 ▼10.6447.62 ▼0.38
Don Security /wp-admin/options-general.php?page=don_security_settings_options8532.0224.3829.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === don-security === )
Please take inspiration from this readme.txt

don-security/don-security.php Passed 13 tests

Analyzing the main PHP file in "Don Security" version 1.0.2
76 characters long description:
This plugin allows to set some security improvements to your WordPress site.

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
Good job! No executable or dangerous file extensions detected425 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10158508348
PO File2242474
JavaScript12273
CSS1040

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.12
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods47
▷ Static methods36.38%
▷ Public methods4187.23%
▷ Protected methods00.00%
▷ Private methods612.77%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin