90% lh-javascript-error-log

Code Review | LH Javascript Error log

WordPress plugin LH Javascript Error log scored90%from 54 tests.

About plugin

  • Plugin page: lh-javascript-err...
  • Plugin version: 1.00
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 10, 2021
  • Latest release: Apr 10, 2021
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /465 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.55ms] Passed 4 tests

Server-side resources used by LH Javascript Error log
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.34 ▼6.15
Dashboard /wp-admin3.31 ▲0.0044.63 ▼2.11
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▲1.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.08 ▼3.09
Media Library /wp-admin/upload.php3.23 ▲0.0035.98 ▲2.21

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by LH Javascript Error log
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.25 ▼0.321.53 ▼0.2237.15 ▼6.10
Dashboard /wp-admin2,195 ▲185.60 ▼0.0393.68 ▼14.4738.88 ▼11.10
Posts /wp-admin/edit.php2,103 ▲61.97 ▼0.0439.88 ▲3.3537.09 ▲2.50
Add New Post /wp-admin/post-new.php1,526 ▼221.03 ▼2.11688.78 ▲15.8063.49 ▲8.34
Media Library /wp-admin/upload.php1,400 ▲34.14 ▼0.09111.61 ▲12.4646.32 ▲0.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: admin-ajaxphp, error-log, debug, javascript, error

lh-javascript-error-log/lh-javascript-error-log.php 92% from 13 tests

The main file in "LH Javascript Error log" v. 1.00 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected204 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP319623184
JavaScript118120

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity24.00
▷ Minimum class complexity16.00
▷ Maximum class complexity32.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods750.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin