89% malcure-security-suite

Code Review | Malcure Security Suite

WordPress plugin Malcure Security Suite scored89%from 54 tests.

About plugin

  • Plugin page: malcure-security-...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 22, 2020
  • Latest release: Nov 12, 2023
  • Number of updates: 23
  • Update frequency: every 59.1 days
  • Top authors: malwareintercept (56.52%)malcure (47.83%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,292 total downloads

Benchmarks

Plugin footprint 83% 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.38MB] [CPU: ▼4.92ms] Passed 4 tests

A check of server-side resources used by Malcure Security Suite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4149.85 ▲13.95
Dashboard /wp-admin3.73 ▲0.3948.95 ▼10.08
Posts /wp-admin/edit.php3.78 ▲0.4345.00 ▼1.55
Add New Post /wp-admin/post-new.php6.25 ▲0.3684.30 ▼5.82
Media Library /wp-admin/upload.php3.59 ▲0.3635.29 ▼2.22

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Malcure Security Suite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲12214.14 ▼0.221.91 ▲0.0042.19 ▲0.90
Dashboard /wp-admin2,287 ▲1125.55 ▼0.1686.04 ▼18.9172.06 ▲27.93
Posts /wp-admin/edit.php2,207 ▲1071.99 ▲0.0536.07 ▼4.3132.72 ▲3.74
Add New Post /wp-admin/post-new.php1,630 ▲10423.06 ▼0.08694.81 ▼15.4264.06 ▲9.68
Media Library /wp-admin/upload.php1,507 ▲1074.18 ▼0.0099.23 ▼13.6268.92 ▲22.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (screenshot-1.png)
You can look at the official readme.txt

malcure-security-suite/malcure_security_suite.php 92% from 13 tests

The principal PHP file in "Malcure Security Suite" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("malcure-security-suite.php" instead of "malcure_security_suite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,655 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP74259393,657
Sass11169578
CSS4532257
SVG244163

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity86.83
▷ Minimum class complexity1.00
▷ Maximum class complexity196.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes466.67%
Methods196
▷ Static methods6231.63%
▷ Public methods19096.94%
▷ Protected methods00.00%
▷ Private methods63.06%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants11
▷ Global constants11100.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
1 PNG file occupies 0.35MB with 0.25MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png353.46KB92.63KB▼ 73.79%