90% exs-gdpr

Code Review | ExS GDPR

WordPress plugin ExS GDPR scored90%from 54 tests.

About plugin

  • Plugin page: exs-gdpr
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Mar 11, 2021
  • Latest release: Mar 13, 2021
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: exstheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.79ms] Passed 4 tests

This is a short check of server-side resources used by ExS GDPR
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.78 ▼2.79
Dashboard /wp-admin3.37 ▲0.0744.31 ▼3.80
Posts /wp-admin/edit.php3.42 ▲0.0744.91 ▲0.70
Add New Post /wp-admin/post-new.php5.95 ▲0.0782.09 ▼13.25
Media Library /wp-admin/upload.php3.30 ▲0.0731.56 ▲0.85
ExS GDPR /wp-admin/options-general.php?page=exs-gdpr3.2628.78

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ExS GDPR
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.181.65 ▼0.0440.08 ▼0.29
Dashboard /wp-admin2,204 ▲125.83 ▲0.93100.63 ▼12.2240.13 ▼3.17
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0433.72 ▼2.6633.63 ▼3.23
Add New Post /wp-admin/post-new.php1,522 ▼623.19 ▲4.92673.79 ▲66.2757.48 ▲5.97
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0194.27 ▼1.8442.43 ▼0.72
ExS GDPR /wp-admin/options-general.php?page=exs-gdpr7702.0222.3723.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: popup, gdpr, gdpr message

exs-gdpr/exs-gdpr.php Passed 13 tests

This is the main PHP file of "ExS GDPR" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
Add dismissable GDPR notice and lets you to add a custom scripts for users who accepted COOKIES

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin633 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12724528
CSS14771
JavaScript10134

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin