72% sv-provenexpert

Code Review | SV Proven Expert

WordPress plugin SV Proven Expert scored72%from 54 tests.

About plugin

  • Plugin page: sv-provenexpert
  • Plugin version: 2.0.02
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Jul 3, 2023
  • Number of updates: 39
  • Update frequency: every 58.4 days
  • Top authors: Matthias Reuter (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /17,680 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 gracefully, with no errors

Server metrics [RAM: ▲1.02MB] [CPU: ▼54,265.29ms] Passed 4 tests

An overview of server-side resources used by SV Proven Expert
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.93 ▲1.4359.30 ▲15.16
Dashboard /wp-admin4.83 ▼0.3157.60 ▼217,079.92
Posts /wp-admin/edit.php4.89 ▲1.4958.93 ▲7.73
Add New Post /wp-admin/post-new.php7.43 ▲1.50102.27 ▼2.93
Media Library /wp-admin/upload.php4.76 ▲1.4852.65 ▲13.96
SV ProvenExpert /wp-admin/admin.php?page=sv_provenexpert4.7750.34
Info /wp-admin/admin.php?page=straightvisions4.8147.63

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 182 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
widget_sv_provenexpert_widget
db_upgraded
can_compress_scripts
sv_provenexpert_scripts_settings_css_sv_provenexpert_widget_scripts_config_attached
sv_provenexpert_scripts_settings_sv_core_color_picker_attached
widget_recent-comments
widget_recent-posts
sv_provenexpert_scripts_settings_css_sv_provenexpert_widget_scripts_frontend_attached
sv_provenexpert_scripts_settings_flush_css_cache
...

Browser metrics Passed 4 tests

An overview of browser requirements for SV Proven Expert
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16414.72 ▼0.011.88 ▲0.0343.12 ▼0.96
Dashboard /wp-admin2,312 ▲1345.53 ▼0.1886.38 ▼17.0282.39 ▲41.63
Posts /wp-admin/edit.php2,232 ▲1321.98 ▼0.0437.16 ▼2.9038.00 ▼1.94
Add New Post /wp-admin/post-new.php6,331 ▲4,80319.19 ▼3.93955.20 ▲295.8539.29 ▼14.69
Media Library /wp-admin/upload.php1,529 ▲1294.23 ▼0.02111.35 ▲10.7384.62 ▲37.99
SV ProvenExpert /wp-admin/admin.php?page=sv_provenexpert1,49010.66198.8228.69
Info /wp-admin/admin.php?page=straightvisions1,59110.6683.29143.35

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 11 options
    • widget_recent-comments
    • sv_provenexpert_scripts_settings_css_sv_provenexpert_widget_scripts_config_attached
    • sv_provenexpert_scripts_settings_flush_css_cache
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • sv_provenexpert_scripts_settings_sv_core_color_picker_attached
    • can_compress_scripts
    • widget_recent-posts
    • widget_sv_provenexpert_widget
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 26 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=straightvisions
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 26 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=straightvisions
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% 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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sv-provenexpert/lib/core_plugin/core/settings/tpl/setting_checkbox_field.php
  • 241× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/settings/tpl/setting_upload.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/settings/tpl/setting_checkbox_field.php on line 14
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/settings/tpl/setting_number.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/backend/tpl/header.php:2
    • > PHP Notice
      Undefined variable: props in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/settings/tpl/setting_margin_field.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/settings/tpl/setting_date.php on line 1
    • > PHP Notice
      Undefined variable: props in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/settings/tpl/setting_text.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/settings/tpl/setting_box_shadow_tpl/blur_radius.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'sv_core\\sv_abstract' not found in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/ajax_fragmented_requests/ajax_fragmented_requests.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sv-provenexpert/lib/core_plugin/core/lib/tpl/settings/scripts_list.php:1

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: proven expert, star reviews, straightvisions, reviews, provenexpert...

sv-provenexpert/sv_provenexpert.php 85% from 13 tests

This is the main PHP file of "SV Proven Expert" version 2.0.02, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sv-provenexpert.php" instead of "sv_provenexpert.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Everything looks great! No dangerous files found in this plugin16,775 lines of code in 153 files:
LanguageFilesBlank linesComment linesLines of code
JSON2006,868
PHP981,0511,3385,054
CSS30289892,904
JavaScript1618786733
PO File2387601628
SVG300586
Markdown2002

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.38
Average class complexity17.62
▷ Minimum class complexity1.00
▷ Maximum class complexity145.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes40
▷ Abstract classes12.50%
▷ Concrete classes3997.50%
▷ Final classes00.00%
Methods438
▷ Static methods81.83%
▷ Public methods38888.58%
▷ Protected methods286.39%
▷ Private methods225.02%
Functions20
▷ Named functions00.00%
▷ Anonymous functions20100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/modules/widget/lib/frontend/img/logo_icon.png1.34KB0.76KB▼ 43.44%
lib/modules/widget/lib/frontend/img/logo.png39.36KB19.37KB▼ 50.80%
lib/modules/widget/lib/frontend/img/logo_proven_expert.png19.73KB10.92KB▼ 44.66%