83% error-and-performance-tracking-with-catchjs

Code Review | Error and Performance Tracking with CatchJS

WordPress plugin Error and Performance Tracking with CatchJS scored83%from 54 tests.

About plugin

  • Plugin page: error-and-perform...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.1.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 21, 2022
  • Latest release: Aug 21, 2022
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: catchjs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /912 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Error and Performance Tracking with CatchJS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.30 ▼0.71
Dashboard /wp-admin3.32 ▼0.0348.11 ▼19.35
Posts /wp-admin/edit.php3.37 ▲0.0148.93 ▼0.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.93 ▼18.26
Media Library /wp-admin/upload.php3.25 ▲0.0141.97 ▲9.42
Error Tracking with CatchJS /wp-admin/options-general.php?page=error-tracking-catchjs-options3.2237.49

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
catchjs-completed
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Error and Performance Tracking with CatchJS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.28 ▼0.072.11 ▲0.1544.24 ▲0.59
Dashboard /wp-admin2,202 ▲255.59 ▼0.0492.18 ▼3.4439.67 ▼9.32
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0142.59 ▲5.5633.53 ▼0.93
Add New Post /wp-admin/post-new.php1,531 ▲323.28 ▲0.13698.24 ▲60.5764.48 ▲19.09
Media Library /wp-admin/upload.php1,404 ▲134.25 ▲0.0197.12 ▼4.9544.46 ▼4.86
Error Tracking with CatchJS /wp-admin/options-general.php?page=error-tracking-catchjs-options8301.9925.2936.28

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • catchjs-completed
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/error-and-performance-tracking-with-catchjs/step2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/error-and-performance-tracking-with-catchjs/settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/error-and-performance-tracking-with-catchjs/step3.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/error-and-performance-tracking-with-catchjs/error-tracking-with-catchjs.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/error-and-performance-tracking-with-catchjs/step1.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: Contributors not specified
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

error-and-performance-tracking-with-catchjs/error-tracking-with-catchjs.php 85% from 13 tests

This is the main PHP file of "Error and Performance Tracking with CatchJS" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("error-and-performance-tracking-with-catchjs.php" instead of "error-tracking-with-catchjs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin499 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP52517278
CSS120221

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo50x50_2_transparent.png3.24KB2.15KB▼ 33.66%
assets/wplogo50x50_transparent.png2.81KB2.23KB▼ 20.49%