Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-plc-swissknife/includes/Modules/Revisions.php+40
Constant AUTOSAVE_INTERVAL already defined
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.63ms] Passed 4 tests
Server-side resources used by WP PLC Swissknife
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.29 ▼4.63 |
Dashboard /wp-admin | 3.45 ▲0.15 | 49.51 ▼4.36 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 55.38 ▲14.71 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 95.62 ▲2.68 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.63 ▲8.83 |
WP PLC Swissknife /wp-admin/options-general.php?page=wpplc-swissknife-options | 3.37 | 34.94 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP PLC Swissknife
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.26 ▼1.30 | 1.83 ▲0.05 | 42.59 ▼7.53 |
Dashboard /wp-admin | 2,214 ▲26 | 5.80 ▲0.88 | 99.73 ▼5.39 | 39.98 ▼0.75 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.04 ▼0.01 | 42.73 ▲6.09 | 37.29 ▲4.17 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.17 ▲5.51 | 670.84 ▲25.27 | 52.04 ▲0.62 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.31 ▲0.12 | 101.32 ▲1.26 | 43.19 ▼2.47 |
WP PLC Swissknife /wp-admin/options-general.php?page=wpplc-swissknife-options | 1,179 | 1.72 | 24.56 | 36.96 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-plc-swissknife/includes/templates/settings.php:14
- > PHP Warning
Use of undefined constant WPPLC_SWISSKNIFE_MAIN_FILE - assumed 'WPPLC_SWISSKNIFE_MAIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-plc-swissknife/includes/loader.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-plc-swissknife/includes/templates/partials/commentsettings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function OnePlace\\Swissknife\\Modules\\add_action() in wp-content/plugins/wp-plc-swissknife/includes/Modules/Settings.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-plc-swissknife/includes/templates/partials/tweaks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-plc-swissknife/includes/templates/partials/elementor.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-plc-swissknife/includes/templates/partials/gdprsettings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-plc-swissknife/includes/templates/partials/revisionsettings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: cookie law, security, rest, performance, xmlrpc...
wp-plc-swissknife/wpplc-swissknife.php 85% from 13 tests
Analyzing the main PHP file in "WP PLC Swissknife" version 0.4.0
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("wp-plc-swissknife.php" instead of "wpplc-swissknife.php")
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
Success! There were no dangerous files found in this plugin1,077 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 172 | 506 | 808 |
CSS | 1 | 28 | 16 | 156 |
SVG | 1 | 0 | 1 | 70 |
JavaScript | 1 | 7 | 14 | 27 |
PO File | 1 | 2 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.29 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 7 | 100.00% |
Methods | 44 | |
▷ Static methods | 8 | 18.18% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 6 | |
▷ Global constants | 6 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon.png | 3.71KB | 3.07KB | ▼ 17.35% |