90% raek-real-time-identification

Code Review | RAEK First-Party Data Collection

WordPress plugin RAEK First-Party Data Collection scored90%from 54 tests.

About plugin

  • Plugin page: raek-real-time-id...
  • Plugin version: 1.0.28
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2021
  • Latest release: Sep 12, 2023
  • Number of updates: 36
  • Update frequency: every 25.5 days
  • Top authors: reak (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /2,470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by RAEK First-Party Data Collection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.76 ▼0.43
Dashboard /wp-admin3.42 ▲0.1270.31 ▲23.78
Posts /wp-admin/edit.php3.39 ▲0.0347.24 ▲0.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.40 ▼15.73
Media Library /wp-admin/upload.php3.26 ▲0.0336.02 ▲3.58

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
raek_cron_last_update
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for RAEK First-Party Data Collection
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲19414.45 ▲0.031.70 ▼0.0639.38 ▼4.15
Dashboard /wp-admin2,335 ▲1574.86 ▼0.02123.98 ▲15.8351.10 ▲9.84
Posts /wp-admin/edit.php2,166 ▲912.03 ▲0.0335.29 ▲1.2034.84 ▼5.95
Add New Post /wp-admin/post-new.php1,546 ▲122.86 ▲4.56642.18 ▲24.8449.69 ▲1.65
Media Library /wp-admin/upload.php1,461 ▲734.26 ▲0.0097.61 ▼2.3242.47 ▼2.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: first-party, lead generation, leads, analytics, lead capture...

raek-real-time-identification/raek.php 92% from 13 tests

"RAEK First-Party Data Collection" version 1.0.28's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("raek-real-time-identification.php" instead of "raek.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin10,345 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
CSS11269,662
PHP24175101680
JavaScript1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
3 compressed PNG files occupy 0.04MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/raek-icon.png6.21KB6.21KB0.00%
assets/images/raek-logo-tm.png15.07KB15.07KB0.00%
assets/images/raek-logo-tm-alt.png15.07KB15.07KB0.00%