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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.72ms] Passed 4 tests
Server-side resources used by Javascript Error Reporting Client
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.79 ▼6.12 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.75 ▼5.97 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.25 ▼7.62 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.93 ▼23.18 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.32 ▲1.39 |
Javascript Errors /wp-admin/tools.php?page=javascript_error_reporting_client | 3.27 | 36.39 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_javascript_error_reporting_client_data |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
javascript_error_reporting_client_db_version |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Javascript Error Reporting Client
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.37 ▲0.00 | 2.04 ▲0.47 | 39.52 ▲0.54 |
Dashboard /wp-admin | 2,190 ▲13 | 5.66 ▼0.03 | 106.22 ▲5.74 | 54.58 ▲10.30 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▼0.08 | 40.80 ▼2.77 | 36.37 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.60 ▼5.75 | 628.24 ▲29.29 | 50.40 ▲0.37 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.22 ▼0.00 | 100.25 ▼1.88 | 42.73 ▼6.24 |
Javascript Errors /wp-admin/tools.php?page=javascript_error_reporting_client | 1,008 | 2.05 | 26.15 | 24.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/javascript-error-reporting-client/admin/partials/jerc-admin-display.php:20
- > 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 96% from 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
8 plugin tags: js, console, bug, debug, developer...
javascript-error-reporting-client/jerc.php 92% from 13 tests
The principal PHP file in "Javascript Error Reporting Client" v. 1.0.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("javascript-error-reporting-client.php" instead of "jerc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected666 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 114 | 555 | 618 |
JavaScript | 2 | 1 | 0 | 25 |
JSON | 1 | 0 | 0 | 17 |
Markdown | 1 | 3 | 0 | 6 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 20 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 37.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin