Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method unifiedlogging::unifiedlogging_activate() should not be called statically
Server metrics [RAM: ▼1.20MB] [CPU: ▼44.45ms] Passed 4 tests
An overview of server-side resources used by Unified Logging
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.69 | 14.36 ▼26.57 |
Dashboard /wp-admin | 2.82 ▼0.49 | 16.12 ▼36.53 |
Posts /wp-admin/edit.php | 2.82 ▼0.54 | 16.44 ▼33.85 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.08 | 18.67 ▼80.85 |
Media Library /wp-admin/upload.php | 2.82 ▼0.42 | 16.68 ▼20.96 |
Unified Logging /wp-admin/options-general.php?page=unifiedlogging | 2.82 | 17.60 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
unifiedlogging_version |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
plugin_unifieidlogging_settings |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Unified Logging
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 13.92 ▼0.64 | 1.68 ▼0.10 | 37.21 ▼9.46 |
Dashboard /wp-admin | 2,215 ▲35 | 5.69 ▲0.02 | 89.08 ▲0.86 | 41.66 ▼0.93 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.97 ▼0.03 | 36.12 ▼0.62 | 38.76 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,390 ▼138 | 20.30 ▼2.77 | 526.92 ▼128.24 | 46.25 ▼16.09 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.16 ▼0.04 | 97.26 ▼8.92 | 42.49 ▼2.82 |
Unified Logging /wp-admin/options-general.php?page=unifiedlogging | 1,181 | 2.12 | 26.95 | 32.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method unifiedlogging::unifiedlogging_include() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=unifiedlogging
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method unifiedlogging::unifiedlogging_include() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=unifiedlogging
- > Deprecated in wp-content/plugins/unified-logging/unifiedlogging-ui.php+129
Non-static method unifiedlogging::get_level() should not be called statically
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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/unified-logging/unifiedlogging-ui.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/unified-logging/unifiedlogging.php:40
- > PHP Fatal error
Uncaught Error: Class 'unifiedlogging' not found in wp-content/plugins/unified-logging/ul-error-handler.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: error, debug, log, admin
unified-logging/unifiedlogging.php 85% from 13 tests
This is the main PHP file of "Unified Logging" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 250 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("unified-logging.php" instead of "unifiedlogging.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected522 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 75 | 103 | 522 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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 images were found in this plugin