10% bvn-satellite

Code Review | BVN Satellite

WordPress plugin BVN Satellite scored10%from 54 tests.

About plugin

  • Plugin page: bvn-satellite
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Feb 9, 2014
  • Latest release: Oct 21, 2014
  • Number of updates: 49
  • Update frequency: every 5.2 days
  • Top authors: atlan79 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /988 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/bvn-satellite/bvn-satellite.php+281
    Function create_function() is deprecated

Server metrics [RAM: ▼1.82MB] [CPU: ▼53.40ms] Passed 4 tests

Server-side resources used by BVN Satellite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.294.74 ▼36.43
Dashboard /wp-admin2.19 ▼1.126.89 ▼43.24
Posts /wp-admin/edit.php2.19 ▼1.175.95 ▼43.33
Add New Post /wp-admin/post-new.php2.19 ▼3.705.62 ▼90.60
Media Library /wp-admin/upload.php2.19 ▼1.046.31 ▼32.41
BVN Satellite /wp-admin/options-general.php?page=bvn-satellite-panel2.197.04

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_bvn_satellite
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

BVN Satellite: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.16 ▼1.231.86 ▼0.9442.77 ▼3.33
Dashboard /wp-admin2,210 ▲254.87 ▼0.04112.81 ▲9.8942.94 ▲3.71
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0138.07 ▲2.9333.56 ▼1.69
Add New Post /wp-admin/post-new.php1,517 ▼2517.82 ▼0.70678.78 ▲70.9857.23 ▲5.51
Media Library /wp-admin/upload.php1,389 ▲44.14 ▼0.14101.93 ▼1.0847.06 ▲3.81
BVN Satellite /wp-admin/options-general.php?page=bvn-satellite-panel9502.0227.9430.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/bvn-satellite/bvn-satellite.php+281
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_bvn_satellite

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=bvn-satellite-panel
    • > Deprecated in wp-content/plugins/bvn-satellite/bvn-satellite.php+281
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bvn-satellite/bvn-satellite.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bvn-satellite/bvn-satellite-panel.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === bvn-satellite === )
The official readme.txt is a good inspiration

bvn-satellite/bvn-satellite.php Passed 13 tests

"BVN Satellite" version 1.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Reads Data from the BVN.ch API and displays them in a WordPress Widget

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 plugin594 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4125171594

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity22.50
▷ Minimum class complexity10.00
▷ Maximum class complexity35.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin