Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.78MB] [CPU: ▼34.59ms] Passed 4 tests
This is a short check of server-side resources used by Stocktech Alerts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 35.15 ▼3.25 |
Dashboard /wp-admin | 3.17 ▼0.18 | 25.97 ▼33.95 |
Posts /wp-admin/edit.php | 3.17 ▼0.19 | 24.47 ▼25.48 |
Add New Post /wp-admin/post-new.php | 3.17 ▼2.72 | 26.36 ▼67.55 |
Media Library /wp-admin/upload.php | 3.17 ▼0.06 | 23.95 ▼11.38 |
Stocktech Alerts /wp-admin/options-general.php?page=stocktech-alerts-settings-config | 3.17 | 23.35 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_widget_stocktech_alerts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Stocktech Alerts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲62 | 14.37 ▲0.02 | 2.06 ▲0.09 | 45.73 ▲2.71 |
Dashboard /wp-admin | 2,205 ▲28 | 5.79 ▲0.17 | 89.04 ▼1.06 | 37.95 ▼0.34 |
Posts /wp-admin/edit.php | 2,113 ▲16 | 1.99 ▼0.04 | 35.63 ▼0.10 | 32.45 ▼3.57 |
Add New Post /wp-admin/post-new.php | 6,374 ▲4,839 | 27.49 ▲9.20 | 824.70 ▲200.52 | 61.12 ▼38.96 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.21 ▼0.04 | 104.21 ▲3.25 | 41.17 ▼1.85 |
Stocktech Alerts /wp-admin/options-general.php?page=stocktech-alerts-settings-config | 807 | 1.70 | 26.06 | 24.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/stocktech-alerts/stocktech_alerts_plugin.php+107
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_widget_stocktech_alerts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stocktech-alerts-settings-config
- > Notice in wp-content/plugins/stocktech-alerts/stocktech_alerts_plugin.php+36
Trying to access array offset on value of type bool
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/stocktech-alerts/stocktech_alerts_activate_plugin_settings.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stocktech-alerts/stocktech_alerts_widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stocktech-alerts/stocktech_alerts_plugin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stocktech-alerts/stocktech_alerts_activate_plugin_admin.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=stocktech-alerts-settings-config
- > Network (severe)
wp-content/plugins/stocktech-alerts/assets/stocktech-wp.css?ver=1.0.1 - Failed to load resource: the server responded with a status of 404 (Not 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
1 plugin tags: price alerts and charts
stocktech-alerts/stocktech_alerts_plugin.php 92% from 13 tests
Analyzing the main PHP file in "Stocktech Alerts" version 1.0.1
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stocktech-alerts.php" instead of "stocktech_alerts_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,912 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 51 | 21 | 1,142 |
PHP | 5 | 148 | 52 | 763 |
SVG | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 5 | 17.24% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin