Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/report-an-error/report-an-error.php+18
Function create_function() is deprecated
Server metrics [RAM: ▼1.85MB] [CPU: ▼50.69ms] Passed 4 tests
An overview of server-side resources used by Report an error
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 5.30 ▼37.35 |
Dashboard /wp-admin | 2.15 ▼1.15 | 6.83 ▼38.45 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.15 ▼38.02 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 5.92 ▼88.92 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.52 ▼25.95 |
Report an error /wp-admin/options-general.php?page=report_an_error | 2.16 | 5.86 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_report_an_error |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Report an error
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲134 | 13.48 ▼0.80 | 9.04 ▲7.43 | 44.62 ▲6.83 |
Dashboard /wp-admin | 2,196 ▲19 | 5.55 ▼0.11 | 84.65 ▼1.13 | 39.83 ▼3.70 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.01 | 34.68 ▼1.66 | 33.81 ▼3.50 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.24 ▲0.09 | 617.51 ▼24.97 | 49.66 ▼11.35 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▲0.01 | 99.31 ▲5.55 | 45.63 ▲4.26 |
Report an error /wp-admin/options-general.php?page=report_an_error | 789 | 2.00 | 22.83 | 24.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/report-an-error/report-an-error.php+18
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_report_an_error
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=report_an_error
- > Deprecated in wp-content/plugins/report-an-error/report-an-error.php+18
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=report_an_error
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/report-an-error/inc/class.widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/report-an-error/report-an-error.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: report, error, prihodru, widget, typo
report-an-error/report-an-error.php Passed 13 tests
The principal PHP file in "Report an error" v. 1.0.1 is loaded by WordPress automatically on each request
115 characters long description:
Cообщения об опечатках или ошибках, замеченных на ваших сайтах.
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
Everything looks great! No dangerous files found in this plugin482 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 70 | 30 | 303 |
PO File | 2 | 67 | 74 | 179 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 14.88KB | 5.59KB | ▼ 62.45% |
screenshot-3.png | 45.09KB | 16.79KB | ▼ 62.76% |
screenshot-2.png | 55.56KB | 22.45KB | ▼ 59.60% |