84% embed-salesvu

Code Review | Embed SalesVu

WordPress plugin Embed SalesVu scored84%from 54 tests.

About plugin

  • Plugin page: embed-salesvu
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 6, 2020
  • Latest release: Nov 30, 2020
  • Number of updates: 10
  • Update frequency: every 29.8 days
  • Top authors: gnowland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /512 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.76ms] Passed 4 tests

Analyzing server-side resources used by Embed SalesVu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0247.13 ▲4.28
Dashboard /wp-admin3.37 ▼0.0248.77 ▼13.54
Posts /wp-admin/edit.php3.42 ▲0.0251.11 ▼4.52
Add New Post /wp-admin/post-new.php5.95 ▲0.0296.26 ▼3.27
Media Library /wp-admin/upload.php3.29 ▲0.0235.74 ▼1.69

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Embed SalesVu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.12 ▼0.251.70 ▼0.0541.45 ▼2.70
Dashboard /wp-admin2,195 ▲215.63 ▼0.0488.15 ▼0.3138.47 ▼1.72
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0739.85 ▼0.2136.80 ▲0.81
Add New Post /wp-admin/post-new.php1,535 ▼217.86 ▼5.23633.10 ▼74.0381.93 ▲22.28
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.05100.46 ▼17.7242.82 ▼6.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Gnowland\\EmbedSalesvu\\add_shortcode() in wp-content/plugins/embed-salesvu/embed-salesvu.php:168

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: iframe, store, e-store, embed, reservations...

embed-salesvu/embed-salesvu.php Passed 13 tests

The main PHP script in "Embed SalesVu" version 1.0.2 is automatically included on every request by WordPress
103 characters long description:
A WordPress Plugin for adding SalesVu store widgets to your website with a simple [salesvu] Shortcode.

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
There were no executable files found in this plugin455 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP886200431
JSON20024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity18.33
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods312.50%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin