90% attentive-security

Code Review | Attentive security - Hide Wp Version, Redirect Wp-Admin link

WordPress plugin Attentive security - Hide Wp Version, Redirect Wp-Admin link scored90%from 54 tests.

About plugin

  • Plugin page: attentive-security
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 17, 2016
  • Latest release: Nov 16, 2023
  • Number of updates: 11
  • Update frequency: every 235.1 days
  • Top authors: unitetheme (63.64%)themeatelier (45.45%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /670 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.23ms] Passed 4 tests

This is a short check of server-side resources used by Attentive security - Hide Wp Version, Redirect Wp-Admin link
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.00 ▲1.46
Dashboard /wp-admin3.34 ▲0.0345.69 ▼2.08
Posts /wp-admin/edit.php3.39 ▲0.0345.08 ▼0.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.92 ▼22.87
Media Library /wp-admin/upload.php3.26 ▲0.0331.99 ▼3.12
Attentive WSP Settings /wp-admin/options-general.php?page=attwsp-setting-admin3.2229.41

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Attentive security - Hide Wp Version, Redirect Wp-Admin link
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.23 ▼0.041.90 ▲0.0243.53 ▼4.68
Dashboard /wp-admin2,199 ▲225.60 ▼0.1289.93 ▼6.1340.81 ▼0.64
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0640.58 ▼2.0935.87 ▲0.66
Add New Post /wp-admin/post-new.php1,533 ▲723.11 ▼0.02664.56 ▼19.8952.57 ▲0.09
Media Library /wp-admin/upload.php1,401 ▲14.18 ▲0.00103.47 ▲8.0343.10 ▼0.29
Attentive WSP Settings /wp-admin/options-general.php?page=attwsp-setting-admin7992.0026.1729.53

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 issues were found

Optimizations

Plugin configuration 97% 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 to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === attentive-security === )
You can look at the official readme.txt

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

Analyzing the main PHP file in "Attentive security - Hide Wp Version, Redirect Wp-Admin link" version 1.3.1
62 characters long description:
A simple WordPress security plugin for your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected157 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45457157

PHP code Passed 2 tests

A brief analysis 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.37
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
No PNG files were detected