Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.15ms] Passed 4 tests
A check of server-side resources used by N-Mediaa WordPress GDPR
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.45 ▼2.13 |
Dashboard /wp-admin | 3.39 ▲0.05 | 43.14 ▼15.54 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 50.15 ▲3.85 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 83.05 ▼14.52 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 35.55 ▼0.41 |
WP GDPR /wp-admin/options-general.php?page=nm-gdpr-settings | 3.28 | 32.70 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
N-Mediaa WordPress GDPR: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.24 ▼1.14 | 1.79 ▲0.19 | 44.95 ▲4.92 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▲0.94 | 97.29 ▼12.74 | 37.60 ▼3.68 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.04 | 39.22 ▲4.51 | 34.66 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.71 ▼5.47 | 679.82 ▲66.70 | 64.24 ▲13.67 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.17 ▼0.00 | 98.60 ▼0.47 | 42.06 ▼1.27 |
WP GDPR /wp-admin/options-general.php?page=nm-gdpr-settings | 974 | 2.12 | 36.97 | 51.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/nmedia-gdpr/inc/helpers.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/nmedia-gdpr/js/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/nmedia-gdpr/templates/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/nmedia-gdpr/inc/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/nmedia-gdpr/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/nmedia-gdpr/css/index.php on line 2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=nm-gdpr-settings
- > Network (severe)
wp-content/plugins/nmedia-gdpr/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=nm-gdpr-settings
- > Network (severe)
wp-content/plugins/nmedia-gdpr/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=nm-gdpr-settings
- > Network (severe)
wp-content/plugins/nmedia-gdpr/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=nm-gdpr-settings
- > Network (severe)
wp-content/plugins/nmedia-gdpr/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
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
5 plugin tags: user data privacy, user consent, wordpress gdpr, gdpr, privacy policy
nmedia-gdpr/nmedia-gdpr.php 92% from 13 tests
The principal PHP file in "N-Mediaa WordPress GDPR" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin5,328 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,140 | 288 | 4,395 |
CSS | 4 | 51 | 79 | 541 |
PHP | 4 | 154 | 55 | 392 |
PHP code Passed 2 tests
An short overview of 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 code | 0.38 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/select2.png | 0.60KB | 0.99KB | 0.00% |