83% smart-security-checker

Code Review | Smart Security Checker

WordPress plugin Smart Security Checker scored83%from 54 tests.

About plugin

  • Plugin page: smart-security-ch...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2023
  • Latest release: Jan 10, 2023
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: smartsoftfirm (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.07ms] Passed 4 tests

This is a short check of server-side resources used by Smart Security Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.84 ▼2.77
Dashboard /wp-admin3.36 ▲0.0150.27 ▼10.96
Posts /wp-admin/edit.php3.47 ▲0.1148.26 ▼1.97
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.80 ▼12.56
Media Library /wp-admin/upload.php3.28 ▲0.0535.69 ▲5.11

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Smart Security Checker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲14613.83 ▼0.418.02 ▲5.5541.45 ▼4.21
Dashboard /wp-admin2,218 ▲415.64 ▼0.0588.12 ▼10.8039.67 ▼2.67
Posts /wp-admin/edit.php2,117 ▲202.01 ▼0.0033.45 ▼1.7934.08 ▲0.32
Add New Post /wp-admin/post-new.php1,544 ▲1323.24 ▲0.02666.11 ▲18.2556.45 ▲3.26
Media Library /wp-admin/upload.php1,420 ▲204.27 ▲0.0298.09 ▼1.9644.73 ▲1.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/smart-security-checker/admin/partials/smart-security-checker-admin-display.php
    • > /wp-content/plugins/smart-security-checker/public/partials/smart-security-checker-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: You can take inspiration from this readme.txt

smart-security-checker/smart-security-checker.php 92% from 13 tests

The primary PHP file in "Smart Security Checker" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)

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
There were no executable files found in this plugin194 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12125540188
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin