84% vp-telegram-instant-view

Code Review | VALKO.PRO - Instant View for Telegram

WordPress plugin VALKO.PRO - Instant View for Telegram scored84%from 54 tests.

About plugin

  • Plugin page: vp-telegram-insta...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.3
  • WordPress version: 6.3.1
  • First release: Mar 9, 2018
  • Latest release: Aug 31, 2023
  • Number of updates: 50
  • Update frequency: every 40.0 days
  • Top authors: olegvalko (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /7,217 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by VALKO.PRO - Instant View for Telegram
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.46 ▼4.13
Dashboard /wp-admin3.32 ▲0.0247.37 ▼13.38
Posts /wp-admin/edit.php3.29 ▼0.0742.04 ▼9.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.38 ▼15.52
Media Library /wp-admin/upload.php3.24 ▲0.0136.84 ▲3.56

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by VALKO.PRO - Instant View for Telegram
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.35 ▼0.181.80 ▼0.1241.89 ▼2.85
Dashboard /wp-admin2,213 ▲335.54 ▼0.1185.34 ▼3.4874.11 ▲28.47
Posts /wp-admin/edit.php2,121 ▲181.97 ▼0.0634.95 ▼7.5034.40 ▼1.81
Add New Post /wp-admin/post-new.php1,539 ▲1023.53 ▲0.44661.83 ▼16.4956.03 ▲4.28
Media Library /wp-admin/upload.php1,412 ▲124.18 ▼0.0196.20 ▼9.3577.88 ▲30.37

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
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/vp-telegram-instant-view/admin/settings-page.php:4

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: instant view, telegram

vp-telegram-instant-view/vp-telegram-instant-view.php 92% from 13 tests

"VALKO.PRO - Instant View for Telegram" version 1.2.0'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:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin281 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File23434187
PHP3233294

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/logo.png2.25KB0.53KB▼ 76.32%