84% show-stock-quotes

Code Review | Show Stock Quotes by 99 Robots

WordPress plugin Show Stock Quotes by 99 Robots scored84%from 54 tests.

About plugin

  • Plugin page: show-stock-quotes
  • Plugin version: 2.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5.1
  • WordPress version: 6.3.1
  • First release: Aug 2, 2013
  • Latest release: Sep 14, 2020
  • Number of updates: 65
  • Update frequency: every 40.0 days
  • Top authors: kjbenk (64.62%)wpsitenet (24.62%)99robots (13.85%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /11,893 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.87ms] Passed 4 tests

A check of server-side resources used by Show Stock Quotes by 99 Robots
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.00 ▲1.13
Dashboard /wp-admin3.35 ▲0.0546.94 ▼3.88
Posts /wp-admin/edit.php3.40 ▲0.0549.17 ▲0.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.80 ▼5.61
Media Library /wp-admin/upload.php3.27 ▲0.0434.56 ▼2.18

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_wpsite_show_stocks
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Show Stock Quotes by 99 Robots
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.61 ▼1.145.94 ▲4.2143.05 ▲2.54
Dashboard /wp-admin2,206 ▲175.86 ▲0.8896.68 ▼21.3840.59 ▼0.98
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0339.57 ▲3.5934.43 ▼1.71
Add New Post /wp-admin/post-new.php1,514 ▼517.57 ▼5.57676.19 ▼5.3251.14 ▼4.85
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0895.38 ▼3.6739.79 ▼9.49

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_wpsite_show_stocks
    • theysaidso_admin_options

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-stock-quotes/show-stock-quotes.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

show-stock-quotes/show-stock-quotes.php 92% from 13 tests

The principal PHP file in "Show Stock Quotes by 99 Robots" v. 2.3.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

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
No dangerous file extensions were detected212 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP14631130
JavaScript3252368
CSS14514

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected