10% visfeed

Code Review | Visfeed

WordPress plugin Visfeed scored10%from 54 tests.

About plugin

  • Plugin page: visfeed
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.5
  • WordPress version: 6.3.1
  • First release: Sep 30, 2016
  • Latest release: Dec 3, 2016
  • Number of updates: 24
  • Update frequency: every 10.1 days
  • Top authors: rickgonzalez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /826 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/visfeed/visfeed.php+39
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.24ms] Passed 4 tests

Server-side resources used by Visfeed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0836.21 ▼6.13
Dashboard /wp-admin3.39 ▲0.0444.70 ▼16.40
Posts /wp-admin/edit.php3.50 ▲0.1448.94 ▲1.54
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.77 ▼10.77
Media Library /wp-admin/upload.php3.31 ▲0.0831.70 ▲0.35
Visfeed Options /wp-admin/options-general.php?page=visfeed/visfeed.php3.2530.19

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
visfeed_Plugin_options

Browser metrics Passed 4 tests

Visfeed: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.43 ▼0.8615.28 ▲13.3147.50 ▲4.92
Dashboard /wp-admin2,207 ▲195.77 ▲0.8994.60 ▼19.4140.87 ▼2.43
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0241.31 ▲3.4634.52 ▼1.00
Add New Post /wp-admin/post-new.php1,545 ▲1918.84 ▼2.08610.23 ▼105.2653.35 ▼7.59
Media Library /wp-admin/upload.php1,395 ▲44.21 ▲0.0296.18 ▼15.4743.35 ▼4.36
Visfeed Options /wp-admin/options-general.php?page=visfeed/visfeed.php9212.0322.9728.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • visfeed_Plugin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=visfeed/visfeed.php
    • > Notice in wp-content/plugins/visfeed/visfeed.php+181
    Undefined index: visfeed_paymentInstruct_text

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/visfeed/visfeed.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Screenshots: A description for screenshot #7 is missing in visfeed/assets to your readme.txt
The official readme.txt might help

visfeed/visfeed.php Passed 13 tests

Analyzing the main PHP file in "Visfeed" version 1.2.2
74 characters long description:
Resource calendar availability and payments for vacation rentals and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin25,309 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript85,4913,15916,590
CSS63482388,116
PHP213482315
SVG100288

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.05
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%
Functions24
▷ Named functions24100.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
There were not PNG files found in your plugin