94% custom-sucuri

Code Review | Custom settings for Sucuri Scanner

WordPress plugin Custom settings for Sucuri Scanner scored 94% from 54 tests.

About plugin

  • Plugin page: custom-sucuri
  • Plugin version: 2.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.0
  • WordPress version: 5.8.1
  • First release: Jul 16, 2015
  • Latest release: Jul 24, 2016
  • Number of updates: 5
  • Update frequency: every 74.6 days
  • Top authors: szepe.viktor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,753 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼148.37ms] Passed 4 tests

Server-side resources used by Custom settings for Sucuri Scanner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0240.96 ▼1.73
Dashboard /wp-admin3.08 ▲0.0256.28 ▼7.19
Posts /wp-admin/edit.php3.13 ▲0.0257.80 ▲1.74
Add New Post /wp-admin/post-new.php5.44 ▲0.0099.10 ▼586.31
Media Library /wp-admin/upload.php3.02 ▲0.0240.49 ▲5.15

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Custom settings for Sucuri Scanner: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9715.83 ▲0.309.38 ▼4.3853.76 ▲2.10
Dashboard /wp-admin2,970 ▲396.14 ▲0.14175.42 ▼0.60107.48 ▼13.52
Posts /wp-admin/edit.php2,739 ▲32.72 ▼0.0188.75 ▲17.9497.45 ▼1.70
Add New Post /wp-admin/post-new.php1,683 ▲6818.74 ▼2.66468.76 ▲153.56115.47 ▲1.66
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.01186.47 ▲9.31121.65 ▼5.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-sucuri/custom-sucuri.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: sucuri, firewall, sucuri scanner, security, malware...

custom-sucuri/custom-sucuri.php Passed 13 tests

The main PHP script in "Custom settings for Sucuri Scanner" version 2.4.0 is automatically included on every request by WordPress
68 characters long description:
Hide firewall related UI elements, relocate datastore path and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
There were not PNG files found in your plugin