Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼137.00ms] Passed 4 tests
An overview of server-side resources used by WP JavaScript Error Logger
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.14 | 33.80 ▲14.11 |
Dashboard /wp-admin | 3.10 ▲0.04 | 43.95 ▲2.27 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 43.76 ▲0.47 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 92.26 ▼551.02 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 32.85 ▲0.29 |
JS Error Log /wp-admin/edit.php?post_type=js_error_log | 3.08 | 32.89 |
Add New /wp-admin/post-new.php?post_type=js_error_log | 3.08 | 41.00 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP JavaScript Error Logger
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲125 | 15.81 ▲0.15 | 8.40 ▼2.37 | 49.96 ▲3.73 |
Dashboard /wp-admin | 3,002 ▲68 | 5.90 ▼0.05 | 138.16 ▼3.00 | 111.98 ▲8.07 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.73 ▲0.02 | 63.51 ▼2.27 | 96.68 ▼4.84 |
Add New Post /wp-admin/post-new.php | 1,695 ▲195 | 18.77 ▲0.23 | 353.96 ▼14.39 | 105.39 ▼5.66 |
Media Library /wp-admin/upload.php | 1,842 ▲32 | 5.02 ▼0.03 | 143.78 ▲3.88 | 119.89 ▲1.19 |
JS Error Log /wp-admin/edit.php?post_type=js_error_log | 1,467 | 2.64 | 65.63 | 73.46 |
Add New /wp-admin/post-new.php?post_type=js_error_log | 2,097 | 3.33 | 82.81 | 118.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-javascript-error-logger/index.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: browser, log, error, javascript
wp-javascript-error-logger/index.php 92% from 13 tests
Analyzing the main PHP file in "WP JavaScript Error Logger" version 1.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-javascript-error-logger.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin76 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 37 | 76 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected