10% stock-market-updates-dow-jones

Code Review | Plugin Name: Stock Market Updates

WordPress plugin Plugin Name: Stock Market Updates scored10%from 54 tests.

About plugin

  • Plugin page: stock-market-upda...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 24, 2016
  • Latest release: Mar 30, 2016
  • Number of updates: 16
  • Update frequency: every 0.4 days
  • Top authors: hagens (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,672 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.48 ▼32.55
Dashboard /wp-admin2.09 ▼1.225.84 ▼40.98
Posts /wp-admin/edit.php2.09 ▼1.276.76 ▼43.12
Add New Post /wp-admin/post-new.php2.09 ▼3.805.81 ▼86.90
Media Library /wp-admin/upload.php2.09 ▼1.146.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.15 ▼1.412.42 ▲0.6839.64 ▼2.10
Dashboard /wp-admin2,209 ▲235.86 ▲0.9594.69 ▼17.2636.25 ▼6.23
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0036.78 ▼2.2832.95 ▼6.35
Add New Post /wp-admin/post-new.php1,533 ▲1423.13 ▼0.25669.73 ▲27.7757.40 ▼10.17
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0195.13 ▼15.0442.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP1291372

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 code0.11
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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