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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.30 ▼0.71 |
Dashboard /wp-admin | 3.32 ▼0.03 | 48.11 ▼19.35 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.93 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.93 ▼18.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 41.97 ▲9.42 |
Error Tracking with CatchJS /wp-admin/options-general.php?page=error-tracking-catchjs-options | 3.22 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.28 ▼0.07 | 2.11 ▲0.15 | 44.24 ▲0.59 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▼0.04 | 92.18 ▼3.44 | 39.67 ▼9.32 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 42.59 ▲5.56 | 33.53 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.28 ▲0.13 | 698.24 ▲60.57 | 64.48 ▲19.09 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.25 ▲0.01 | 97.12 ▼4.95 | 44.46 ▼4.86 |
Error Tracking with CatchJS /wp-admin/options-general.php?page=error-tracking-catchjs-options | 830 | 1.99 | 25.29 | 36.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
- > 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, 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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 25 | 17 | 278 |
CSS | 1 | 2 | 0 | 221 |
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 code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo50x50_2_transparent.png | 3.24KB | 2.15KB | ▼ 33.66% |
assets/wplogo50x50_transparent.png | 2.81KB | 2.23KB | ▼ 20.49% |