Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▲0.93ms] Passed 4 tests
A check of server-side resources used by Custom Logging Service
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 42.28 ▲2.30 |
Dashboard /wp-admin | 3.50 ▲0.20 | 55.74 ▲4.95 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 53.09 ▲1.58 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 96.27 ▼5.11 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 39.19 ▲5.98 |
Application logs /wp-admin/index.php?page=clgs_manager | 3.37 | 34.50 |
Custom Logging Service /wp-admin/options-general.php?page=clgs_options | 3.39 | 33.41 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_clgs_logs |
wp_clgs_entries |
New WordPress options |
---|
widget_recent-comments |
clgs_version |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Logging Service
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 14.48 ▲0.10 | 1.65 ▼0.08 | 39.82 ▼8.98 |
Dashboard /wp-admin | 2,214 ▲23 | 4.88 ▼1.02 | 106.32 ▲0.27 | 40.25 ▼0.94 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.18 ▲0.17 | 38.51 ▼2.19 | 34.03 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 22.90 ▲4.54 | 632.34 ▼10.94 | 51.57 ▼4.27 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.14 ▼0.03 | 95.43 ▼5.25 | 44.41 ▲0.09 |
Application logs /wp-admin/index.php?page=clgs_manager | 1,090 | 2.09 | 27.13 | 30.34 |
Custom Logging Service /wp-admin/options-general.php?page=clgs_options | 903 | 2.03 | 23.83 | 27.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/index.php?page=clgs_manager
- > Notice in wp-content/plugins/custom-logging-service/includes/class-manager-table.php+130
compact(): Undefined variable: category
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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-logging-service/custom-logging-service.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-logging-service/includes/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-logging-service/includes/manager.php:89
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-logging-service/includes/class-manager-table.php on line 3
- > PHP Warning
require(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/custom-logging-service/includes/class-manager-table.php on line 3
- > PHP Fatal error
require(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-logging-service/includes/class-manager-table.php on line 3
- > 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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: logging
custom-logging-service/custom-logging-service.php Passed 13 tests
"Custom Logging Service" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
Provides a simple API for storing miscellaneous log entries and displays them in a Dashboard subpage.
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
There were no executable files found in this plugin1,251 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 212 | 691 | 1,036 |
PO File | 2 | 58 | 67 | 146 |
CSS | 1 | 0 | 0 | 52 |
JavaScript | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 29 | 93.55% |
▷ Anonymous functions | 2 | 6.45% |
Constants | 14 | |
▷ Global constants | 13 | 92.86% |
▷ Class constants | 1 | 7.14% |
▷ Public constants | 1 | 100.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
There were not PNG files found in your plugin