89% dessky-security

Code Review | Dessky Security

WordPress plugin Dessky Security scored89%from 54 tests.

About plugin

  • Plugin page: dessky-security
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2+
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Oct 10, 2023
  • Number of updates: 10
  • Update frequency: every 291.2 days
  • Top authors: dessky (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /4,506 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: ▲0.82ms] Passed 4 tests

Analyzing server-side resources used by Dessky Security
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.66 ▲4.13
Dashboard /wp-admin3.32 ▲0.0252.06 ▼5.82
Posts /wp-admin/edit.php3.37 ▲0.0154.13 ▲5.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.83 ▼0.62
Media Library /wp-admin/upload.php3.25 ▲0.0241.75 ▲6.30
Site Info /wp-admin/admin.php?page=desskyscan_infosys3.2248.48
Hardening /wp-admin/admin.php?page=desskyscan_hardening3.2237.08

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Dessky Security: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.25 ▼0.111.98 ▲0.1745.17 ▲2.62
Dashboard /wp-admin2,229 ▲495.67 ▲0.0190.89 ▼0.7139.63 ▼3.33
Posts /wp-admin/edit.php2,131 ▲312.02 ▲0.0040.05 ▲3.0235.50 ▼5.57
Add New Post /wp-admin/post-new.php1,561 ▲3325.16 ▲2.02654.53 ▼38.1854.56 ▼0.97
Media Library /wp-admin/upload.php1,493 ▲964.19 ▲0.01100.25 ▼20.1143.95 ▲0.46
Site Info /wp-admin/admin.php?page=desskyscan_infosys1,3542.2126.1949.51
Hardening /wp-admin/admin.php?page=desskyscan_hardening1,1771.8324.7758.99

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

dessky-security/dessky-security.php 92% from 13 tests

The principal PHP file in "Dessky Security" v. 1.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,628 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP23327431,440
CSS1118146
JavaScript210842
HTML1010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods59
▷ Static methods5796.61%
▷ Public methods5186.44%
▷ Protected methods00.00%
▷ Private methods813.56%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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 are no PNG files in this plugin