Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.12ms] Passed 4 tests
This is a short check of server-side resources used by GDPR Cache Scripts & Styles
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 42.57 ▼0.30 |
Dashboard /wp-admin | 3.54 ▲0.23 | 51.18 ▲0.09 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 48.36 ▼1.97 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 88.63 ▼6.31 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.55 ▲2.27 |
GDPR Cache /wp-admin/tools.php?page=gdpr-cache | 3.49 | 34.93 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for GDPR Cache Scripts & Styles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.54 ▼0.84 | 1.69 ▼0.01 | 48.31 ▲3.60 |
Dashboard /wp-admin | 2,225 ▲19 | 5.83 ▼0.07 | 96.18 ▼11.92 | 40.32 ▼4.37 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.05 ▼0.00 | 40.23 ▲1.82 | 33.25 ▼3.86 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 22.95 ▼0.23 | 673.16 ▲26.68 | 54.38 ▼12.69 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.25 ▲0.04 | 96.52 ▼11.86 | 42.58 ▼4.08 |
GDPR Cache /wp-admin/tools.php?page=gdpr-cache | 808 | 2.05 | 25.94 | 30.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Contributors: The plugin contributors field is missing
gdpr-cache-scripts-styles/plugin.php 85% from 13 tests
Analyzing the main PHP file in "GDPR Cache Scripts & Styles" version 1.0.7
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gdpr-cache-scripts-styles.php" instead of "plugin.php")
- 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 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 plugin1,786 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 482 | 1,150 | 1,281 |
JavaScript | 1 | 48 | 107 | 413 |
CSS | 1 | 26 | 3 | 92 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 1 | |
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 | 69 | |
▷ Named functions | 66 | 95.65% |
▷ Anonymous functions | 3 | 4.35% |
Constants | 20 | |
▷ Global constants | 11 | 55.00% |
▷ Class constants | 9 | 45.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin