Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼0.10ms] Passed 4 tests
This is a short check of server-side resources used by preeco GDPR Widgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.48 ▲4.28 |
Dashboard /wp-admin | 3.43 ▲0.08 | 44.19 ▼6.85 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.25 ▲1.20 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 90.15 ▲3.18 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.48 ▲2.08 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=preeco_widgets | 3.34 | 33.31 |
preeco Widgets /wp-admin/options-general.php?page=preeco-widgets | 3.32 | 31.73 |
Add New /wp-admin/post-new.php?post_type=preeco_widgets | 3.43 | 47.16 |
All Widgets /wp-admin/edit.php?post_type=preeco_widgets | 3.39 | 34.38 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by preeco GDPR Widgets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲148 | 13.28 ▼1.09 | 1.84 ▲0.19 | 41.86 ▲5.18 |
Dashboard /wp-admin | 2,275 ▲89 | 5.90 ▲0.95 | 109.74 ▼45.22 | 41.57 ▼14.03 |
Posts /wp-admin/edit.php | 2,158 ▲66 | 2.13 ▲0.13 | 39.80 ▲1.60 | 34.12 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 23.40 ▲5.76 | 630.04 ▼8.58 | 56.30 ▲1.76 |
Media Library /wp-admin/upload.php | 1,452 ▲61 | 4.23 ▲0.00 | 100.96 ▲2.39 | 41.74 ▼1.20 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=preeco_widgets | 1,376 | 2.17 | 27.05 | 28.84 |
preeco Widgets /wp-admin/options-general.php?page=preeco-widgets | 882 | 2.07 | 25.81 | 26.41 |
Add New /wp-admin/post-new.php?post_type=preeco_widgets | 2,040 | 4.26 | 86.52 | 52.06 |
All Widgets /wp-admin/edit.php?post_type=preeco_widgets | 1,143 | 1.97 | 32.71 | 31.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/preeco-widgets/admin/partials/preeco-widgets-admin-display.php:17
- > PHP Fatal error
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
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #2 in preeco-widgets/assets to your readme.txt
preeco-widgets/preeco-widgets.php 92% from 13 tests
The main PHP file in "preeco GDPR Widgets" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin513 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 123 | 288 | 420 |
PO File | 1 | 26 | 32 | 73 |
CSS | 1 | 3 | 4 | 9 |
SVG | 1 | 0 | 0 | 8 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 3 | 8.11% |
▷ Private methods | 4 | 10.81% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.51MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 75.68KB | 22.20KB | ▼ 70.67% |
assets/screenshot-1.png | 150.89KB | 72.12KB | ▼ 52.20% |
assets/banner-772x250.png | 36.50KB | 11.02KB | ▼ 69.81% |
assets/screenshot-2.png | 258.25KB | 53.90KB | ▼ 79.13% |
assets/icon-128x128.png | 0.94KB | 0.20KB | ▼ 78.61% |