Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/stock-market-updates-dow-jones/get-data.php+55
Methods with the same name as their class will not be constructors in a future version of PHP; sm_data has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼50.89ms] Passed 4 tests
An overview of server-side resources used by Plugin Name: Stock Market Updates
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.48 ▼32.55 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.84 ▼40.98 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.76 ▼43.12 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.81 ▼86.90 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.04 ▼29.01 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_sm_data |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Plugin Name: Stock Market Updates
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.15 ▼1.41 | 2.42 ▲0.68 | 39.64 ▼2.10 |
Dashboard /wp-admin | 2,209 ▲23 | 5.86 ▲0.95 | 94.69 ▼17.26 | 36.25 ▼6.23 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.00 | 36.78 ▼2.28 | 32.95 ▼6.35 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.13 ▼0.25 | 669.73 ▲27.77 | 57.40 ▼10.17 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.01 | 95.13 ▼15.04 | 42.71 ▼2.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/stock-market-updates-dow-jones/get-data.php+55
Methods with the same name as their class will not be constructors in a future version of PHP; sm_data has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_sm_data
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/stock-market-updates-dow-jones/get-data.php:50
- > PHP Fatal error
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 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Plugin Name: Stock Market Updates ===
) - Screenshots: These screenshots need descriptions #2, #0, #0 in stock-market-updates-dow-jones/assets to your readme.txt
- Contributors: Contributors not specified
stock-market-updates-dow-jones/get-data.php 85% from 13 tests
The principal PHP file in "Plugin Name: Stock Market Updates" v. 2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("stock-market-updates-dow-jones.php" instead of "get-data.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin72 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 13 | 72 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin