89% juicenet-gdpr

Code Review | JuiceNet GDPR

WordPress plugin JuiceNet GDPR scored89%from 54 tests.

About plugin

  • Plugin page: juicenet-gdpr
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2018
  • Latest release: Jun 10, 2020
  • Number of updates: 27
  • Update frequency: every 27.4 days
  • Top authors: rugbycap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /927 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.06MB] [CPU: ▼20.24ms] Passed 4 tests

Server-side resources used by JuiceNet GDPR
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1847.51 ▲5.55
Dashboard /wp-admin3.28 ▼0.1026.86 ▼34.20
Posts /wp-admin/edit.php3.42 ▲0.0238.29 ▼13.95
Add New Post /wp-admin/post-new.php5.66 ▼0.2772.30 ▼33.44
Media Library /wp-admin/upload.php3.37 ▲0.1031.51 ▲0.63

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

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

Browser metrics Passed 4 tests

A check of browser resources used by JuiceNet GDPR
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲15813.75 ▼0.6015.31 ▲13.7341.59 ▼0.87
Dashboard /wp-admin2,195 ▲205.56 ▼0.0590.90 ▼12.8376.39 ▲39.17
Posts /wp-admin/edit.php2,121 ▲211.99 ▲0.0237.78 ▲0.8235.81 ▲0.38
Add New Post /wp-admin/post-new.php1,539 ▲1123.58 ▲0.44736.67 ▲90.0057.96 ▼3.04
Media Library /wp-admin/upload.php1,418 ▲184.11 ▼0.0697.57 ▼4.5874.88 ▲30.38

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
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_juicenet_gdpr_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (JuiceNet GDPR Admin Options Page compiled with correct info)
The official readme.txt is a good inspiration

juicenet-gdpr/juicenet-gdpr.php 92% from 13 tests

"JuiceNet GDPR" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 361 characters long)

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 plugin373 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP66656311
CSS45037
JavaScript23024
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon-admin.png0.38KB0.41KB0.00%