84% stock-market-charts-from-finviz

Code Review | Stock market charts from finviz

WordPress plugin Stock market charts from finviz scored 84% from 54 tests.

About plugin

  • Plugin page: stock-market-char...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2016
  • Latest release: Sep 27, 2023
  • Number of updates: 52
  • Update frequency: every 52.2 days
  • Top authors: morisdov (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active / 12,093 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▲2.68ms] Passed 4 tests

Server-side resources used by Stock market charts from finviz
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.30 ▲2.42
Dashboard /wp-admin3.35 ▲0.0457.11 ▲5.62
Posts /wp-admin/edit.php3.40 ▲0.0454.45 ▲2.39
Add New Post /wp-admin/post-new.php5.93 ▲0.04101.41 ▲1.64
Media Library /wp-admin/upload.php3.27 ▲0.0439.08 ▲4.26
Stock Market Charts /wp-admin/options-general.php?page=md_finvizoptions3.2432.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Stock market charts from finviz
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.25 ▼0.041.77 ▼0.1437.07 ▼6.41
Dashboard /wp-admin2,210 ▲14.85 ▼0.01108.43 ▼1.3141.57 ▼0.99
Posts /wp-admin/edit.php2,093 ▲12.17 ▲0.1338.74 ▼1.7936.77 ▲1.77
Add New Post /wp-admin/post-new.php1,640 ▲9818.36 ▼0.26637.41 ▲27.4546.39 ▼11.81
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.0297.17 ▲0.2742.79 ▲1.00
Stock Market Charts /wp-admin/options-general.php?page=md_finvizoptions1,0142.0226.2829.50

Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stock-market-charts-from-finviz/stock_market_charts_finviz.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: stock, chart, market, finance, ticker

stock-market-charts-from-finviz/stock_market_charts_finviz.php 92% from 13 tests

"Stock market charts from finviz" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stock-market-charts-from-finviz.php" instead of "stock_market_charts_finviz.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin229 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22946229

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.68
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 functions777.78%
▷ Anonymous functions222.22%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin