Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.88ms] Passed 4 tests
An overview of server-side resources used by Piškotki GDPR Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 47.90 ▲8.46 |
Dashboard /wp-admin | 3.41 ▲0.11 | 39.83 ▼7.68 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.37 ▼3.25 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 83.28 ▼10.10 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.00 ▲1.53 |
piskotkiGDPR /wp-admin/options-general.php?page=piskotki-gdpr | 3.31 | 33.66 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Piškotki GDPR Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.39 ▼1.01 | 3.41 ▲1.64 | 50.54 ▲8.49 |
Dashboard /wp-admin | 2,224 ▲35 | 5.07 ▲0.12 | 113.76 ▲9.65 | 43.31 ▲2.15 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 2.32 ▲0.28 | 40.64 ▼0.18 | 31.60 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 18.54 ▼4.86 | 595.79 ▼39.23 | 33.56 ▼20.78 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.48 ▲0.27 | 98.54 ▼0.84 | 40.37 ▼1.54 |
piskotkiGDPR /wp-admin/options-general.php?page=piskotki-gdpr | 1,964 | 2.46 | 78.65 | 44.89 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/piskotkigdpr/piskotki-gdpr.php:14
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: pikot, spletne strani, uredba, gdpr, spletna stran...
piskotkigdpr/piskotki-gdpr.php 85% from 13 tests
The main PHP script in "Piškotki GDPR Plugin" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "6.2")
- Main file name: The principal plugin file should be the same as the plugin slug ("piskotkigdpr.php" instead of "piskotki-gdpr.php")
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 detected533 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 83 | 54 | 531 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/piskotkigdpr.png | 5.56KB | 6.20KB | 0.00% |