89% extra-privacy-for-elementor

Code Review | Extra Privacy for Elementor

WordPress plugin Extra Privacy for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: extra-privacy-for...
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Mar 19, 2018
  • Latest release: May 8, 2019
  • Number of updates: 19
  • Update frequency: every 21.8 days
  • Top authors: heddesheimer (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /11,162 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.95ms] Passed 4 tests

Server-side resources used by Extra Privacy for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1938.05 ▼5.53
Dashboard /wp-admin3.48 ▲0.1845.21 ▼3.25
Posts /wp-admin/edit.php3.59 ▲0.2442.91 ▼5.24
Add New Post /wp-admin/post-new.php6.08 ▲0.1989.62 ▼1.78
Media Library /wp-admin/upload.php3.40 ▲0.1736.25 ▲2.88
Extra Privacy for Elementor Settings /wp-admin/options-general.php?page=extra_privacy_for_elementor_settings3.4032.50

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 11 new options
New WordPress options
epfe_privacy_text_maps
widget_recent-comments
theysaidso_admin_options
epfe_privacy_url
extra_privacy_for_elementor_version
db_upgraded
epfe_privacy_text
widget_theysaidso_widget
can_compress_scripts
epfe_privacy_page_name
...

Browser metrics Passed 4 tests

A check of browser resources used by Extra Privacy for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15914.06 ▼0.345.26 ▲3.3238.01 ▼2.50
Dashboard /wp-admin2,214 ▲224.92 ▼0.99121.51 ▲8.0741.59 ▼1.32
Posts /wp-admin/edit.php2,097 ▲52.03 ▲0.0436.80 ▼7.5329.48 ▼8.46
Add New Post /wp-admin/post-new.php1,521 ▼223.34 ▲0.08645.42 ▼19.5362.65 ▲10.19
Media Library /wp-admin/upload.php1,393 ▲54.20 ▼0.0397.98 ▲1.1339.91 ▼4.26
Extra Privacy for Elementor Settings /wp-admin/options-general.php?page=extra_privacy_for_elementor_settings1,0173.3255.9030.84

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_theysaidso_widget
    • epfe_privacy_text
    • extra_privacy_for_elementor_version
    • widget_recent-posts
    • epfe_privacy_page_name
    • theysaidso_admin_options
    • can_compress_scripts
    • epfe_privacy_url
    • epfe_privacy_text_maps
    • widget_recent-comments
    • ...

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 no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Settings Page Standard), #2 (Video Settings), #3 (Maps Settings), #4 (Frontend Page with placeholder image), #5 (Frontend Page with explantion shown)
Please take inspiration from this readme.txt

extra-privacy-for-elementor/extra-privacy-for-elementor.php Passed 13 tests

Analyzing the main PHP file in "Extra Privacy for Elementor" version 0.1.3
100 characters long description:
This will add some extra privady settings to Elementor Widgets, regarding the EU-Privacy Regulations

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected964 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP6217319644
PO File26985200
JavaScript616669
CSS27251

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity36.67
▷ Minimum class complexity21.00
▷ Maximum class complexity62.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3594.59%
▷ Protected methods00.00%
▷ Private methods25.41%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.87MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png105.27KB32.82KB▼ 68.82%
screenshot-1.png38.08KB14.66KB▼ 61.50%
screenshot-2.png98.64KB31.23KB▼ 68.34%
screenshot-4.png485.51KB123.11KB▼ 74.64%
screenshot-5.png163.42KB47.92KB▼ 70.68%