90% xcoobee-sar

Code Review | XcooBee Subject Access Request SAR

WordPress plugin XcooBee Subject Access Request SAR scored90%from 54 tests.

About plugin

  • Plugin page: xcoobee-sar
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2019
  • Latest release: Jan 9, 2020
  • Number of updates: 16
  • Update frequency: every 18.2 days
  • Top authors: xcoobee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /716 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by XcooBee Subject Access Request SAR
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.15 ▲0.02
Dashboard /wp-admin3.34 ▲0.0446.03 ▼12.66
Posts /wp-admin/edit.php3.39 ▲0.0345.18 ▼3.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.43 ▼18.20
Media Library /wp-admin/upload.php3.26 ▲0.0336.77 ▲4.38

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for XcooBee Subject Access Request SAR
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.46 ▲0.161.65 ▼0.0438.37 ▲0.19
Dashboard /wp-admin2,217 ▲285.86 ▲0.8898.83 ▼11.4539.42 ▼1.21
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0539.75 ▼1.7937.38 ▲1.72
Add New Post /wp-admin/post-new.php1,522 ▲817.45 ▼0.01637.31 ▲3.2753.81 ▲1.68
Media Library /wp-admin/upload.php1,396 ▲84.23 ▲0.0296.37 ▲1.4442.41 ▲0.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: sar, export, gdpr, dsvgo, ccpa...

xcoobee-sar/xcoobee-sar.php 92% from 13 tests

Analyzing the main PHP file in "XcooBee Subject Access Request SAR" version 1.2.5
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin861 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP8129291784
JavaScript441152
CSS44025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity14.25
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods417.39%
▷ Public methods2086.96%
▷ Protected methods28.70%
▷ Private methods14.35%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin