84% simple-virtu-widget

Code Review | Simple Virtu Widget

WordPress plugin Simple Virtu Widget scored84%from 54 tests.

About plugin

  • Plugin page: simple-virtu-widget
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2020
  • Latest release: Feb 6, 2021
  • Number of updates: 4
  • Update frequency: every 30.0 days
  • Top authors: hayk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /342 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲2.22ms] Passed 4 tests

This is a short check of server-side resources used by Simple Virtu Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0139.07 ▲0.80
Dashboard /wp-admin3.37 ▲0.0248.64 ▼3.75
Posts /wp-admin/edit.php3.48 ▲0.0851.43 ▲6.69
Add New Post /wp-admin/post-new.php5.95 ▲0.0298.39 ▲5.15
Media Library /wp-admin/upload.php3.29 ▲0.0238.99 ▲7.63
Simple Virtu Widget /wp-admin/options-general.php?page=simple-virtu-widget3.2633.56

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple Virtu Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.121.74 ▲0.2340.33 ▼2.78
Dashboard /wp-admin2,199 ▲225.69 ▼0.0189.90 ▼5.4144.55 ▲6.66
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0739.32 ▼2.9540.10 ▲5.59
Add New Post /wp-admin/post-new.php1,540 ▲1418.26 ▼5.29615.44 ▼73.7773.17 ▲3.75
Media Library /wp-admin/upload.php1,407 ▲44.19 ▼0.01104.34 ▲7.2645.83 ▼0.60
Simple Virtu Widget /wp-admin/options-general.php?page=simple-virtu-widget8242.0324.0826.51

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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 take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-virtu-widget/options.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-virtu-widget/simple-virtu-widget.php:83

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: javascript, widget, virtu

simple-virtu-widget/simple-virtu-widget.php Passed 13 tests

"Simple Virtu Widget" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
52 characters long description:
Enables Virtu Systems mortgage widget and shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected114 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2262694
PO File13320

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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 functions9100.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