Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▲2.04ms] Passed 4 tests
Analyzing server-side resources used by hanapaena's Lite - Font & Style Manager - DSGVO/GDPR
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 40.43 ▼2.66 |
Dashboard /wp-admin | 3.89 ▲0.55 | 61.51 ▼4.08 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 61.14 ▲7.95 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 100.39 ▲6.96 |
Media Library /wp-admin/upload.php | 3.89 ▲0.67 | 49.51 ▲15.40 |
Server storage [IO: ▲1.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
pss_lfsmanager_setting_remove_google_apis |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
pss_lfsmanager_current_version |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
hanapaena's Lite - Font & Style Manager - DSGVO/GDPR: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲186 | 13.34 ▼0.77 | 1.76 ▼0.14 | 41.33 ▼3.61 |
Dashboard /wp-admin | 2,368 ▲180 | 5.16 ▲0.28 | 114.59 ▲3.71 | 83.84 ▲39.54 |
Posts /wp-admin/edit.php | 2,250 ▲161 | 2.28 ▲0.28 | 40.60 ▼0.45 | 33.39 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,529 ▲10 | 23.11 ▼0.14 | 638.75 ▼20.49 | 51.34 ▲0.76 |
Media Library /wp-admin/upload.php | 1,545 ▲154 | 4.52 ▲0.21 | 101.76 ▲1.64 | 40.52 ▼4.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ao-lfsmanager/update/update.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/ao-lfsmanager/admin/partials/pss-lfsmanager-admin-display.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
ao-lfsmanager/lite-fsmanager.php 85% from 13 tests
The main file in "hanapaena's Lite - Font & Style Manager - DSGVO/GDPR" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ao-lfsmanager.php" instead of "lite-fsmanager.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,285 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 68 | 610 | 619 |
CSS | 1 | 1 | 22 | 377 |
SVG | 5 | 9 | 1 | 191 |
PO File | 1 | 77 | 241 | 73 |
JavaScript | 1 | 0 | 3 | 25 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
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 | 3 | 8.11% |
▷ Public methods | 28 | 75.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 24.32% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 4 | |
▷ Global constants | 4 | 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
5 PNG files occupy 0.60MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/icons/hanapaena-cut.png | 115.87KB | 61.01KB | ▼ 47.35% |
admin/icons/hanapaena.png | 123.29KB | 63.93KB | ▼ 48.14% |
admin/icons/icon-256x256.png | 40.14KB | 17.46KB | ▼ 56.50% |
admin/banner/plugin-background.png | 217.89KB | 178.23KB | ▼ 18.20% |
admin/style/pss-plugin-admin-bg.png | 116.05KB | 40.79KB | ▼ 64.85% |