Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/123privacy/123privacy.php+87
Function create_function() is deprecated
Server metrics [RAM: ▼2.53MB] [CPU: ▼350.74ms] Passed 4 tests
An overview of server-side resources used by 123privacy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.67 | 4.50 ▼45.21 |
Dashboard /wp-admin | 1.86 ▼1.55 | 3.23 ▼28.47 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 3.66 ▼31.83 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 4.70 ▼1,297.44 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 4.21 ▼17.93 |
123privacy /wp-admin/options-general.php?page=privacy_to_wordpress | 1.86 | 4.22 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_twitter_button |
Browser metrics Passed 4 tests
123privacy: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,926 ▲184 | 16.25 ▲0.59 | 11.43 ▲5.50 | 3.01 ▲0.69 |
Dashboard /wp-admin | 2,899 ▲41 | 6.09 ▼0.17 | 115.52 ▼18.00 | 153.13 ▼4.99 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.24 ▲0.00 | 61.19 ▼0.18 | 139.09 ▼5.60 |
Add New Post /wp-admin/post-new.php | 1,763 ▲102 | 21.86 ▲5.28 | 416.89 ▼21.42 | 156.14 ▲9.86 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.50 ▼0.01 | 137.99 ▼3.42 | 187.32 ▲1.43 |
123privacy /wp-admin/options-general.php?page=privacy_to_wordpress | 1,476 | 2.38 | 56.47 | 199.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/123privacy/123privacy.php+87
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_twitter_button
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=privacy_to_wordpress
- > Deprecated in wp-content/plugins/123privacy/123privacy.php+87
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=privacy_to_wordpress
- > Notice in wp-content/plugins/123privacy/classes/Privacy_To_Wordpress.php+80
Undefined index: form_content_validator
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=privacy_to_wordpress
- > Notice in wp-content/plugins/123privacy/classes/Privacy_To_Wordpress.php+211
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=privacy_to_wordpress
- > Notice in wp-content/plugins/123privacy/classes/Privacy_To_Wordpress.php+211
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/123privacy/123privacy.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/123privacy/classes/Twitter_Button.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
123privacy/123privacy.php Passed 13 tests
The main PHP file in "123privacy" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
Plugin om de kant-en-klare cookiewet oplossing van 123privacy.nl aan WordPress toe te voegen.
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
No dangerous file extensions were detected325 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 144 | 105 | 292 |
CSS | 1 | 2 | 2 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected