Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.58ms] Passed 4 tests
A check of server-side resources used by Custom Error Log
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.46 ▼3.51 |
Dashboard /wp-admin | 3.38 ▲0.07 | 51.96 ▲2.06 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.16 ▼1.70 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 98.68 ▼7.17 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 49.09 ▲12.06 |
Error Log /wp-admin/tools.php?page=custom-error-log | 3.29 | 35.26 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
custom_notice_log |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
cel_new_logs |
cel_ab_show |
custom_error_log |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Error Log
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 14.78 ▲0.40 | 1.69 ▼0.51 | 45.45 ▲2.15 |
Dashboard /wp-admin | 2,219 ▲31 | 5.83 ▲0.01 | 139.18 ▲29.82 | 47.01 ▲2.20 |
Posts /wp-admin/edit.php | 2,120 ▲52 | 2.06 ▲0.05 | 42.09 ▲3.08 | 35.76 ▼4.40 |
Add New Post /wp-admin/post-new.php | 1,523 ▼11 | 17.69 ▼5.54 | 668.39 ▼9.66 | 59.66 ▼34.52 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.11 ▼0.16 | 118.26 ▲10.79 | 44.16 ▲0.78 |
Error Log /wp-admin/tools.php?page=custom-error-log | 878 | 2.04 | 28.36 | 29.79 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=custom-error-log
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=custom-error-log
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 8 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=custom-error-log
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=custom-error-log
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
SRP 50% from 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
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-error-log/admin/admin.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-error-log/admin/admin-bar.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function cel_get_all_logs() in wp-content/plugins/custom-error-log/admin/log-table.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-error-log/includes/functions.php:158
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-error-log/custom-error-log.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-error-log/admin/introduction.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: Screenshot #1 (The error log page.) image missing
custom-error-log/custom-error-log.php 92% from 13 tests
The main PHP script in "Custom Error Log" version 1.1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
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
No dangerous file extensions were detected834 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 385 | 185 | 448 |
CSS | 2 | 42 | 17 | 168 |
JavaScript | 1 | 103 | 38 | 129 |
PO File | 1 | 31 | 31 | 89 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.05MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 55.88KB | 54.53KB | ▼ 2.40% |