10% kurs-bca

Code Review | Kurs BCA

WordPress plugin Kurs BCA scored10%from 54 tests.

About plugin

  • Plugin page: kurs-bca
  • Plugin version: 2.0....
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2013
  • Latest release: May 27, 2014
  • Number of updates: 11
  • Update frequency: every 21.1 days
  • Top authors: rioyotto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,700 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/kurs-bca/index.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_kurs_bca has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.76ms] Passed 4 tests

Analyzing server-side resources used by Kurs BCA
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.93 ▼40.57
Dashboard /wp-admin2.09 ▼1.216.62 ▼50.30
Posts /wp-admin/edit.php2.09 ▼1.277.21 ▼41.07
Add New Post /wp-admin/post-new.php2.09 ▼3.806.53 ▼87.08
Media Library /wp-admin/upload.php2.09 ▼1.146.36 ▼29.42

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_wp_kurs_bca
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kurs BCA
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.60 ▲0.301.64 ▼0.8943.84 ▼0.48
Dashboard /wp-admin2,206 ▲185.80 ▲0.90104.80 ▼13.1441.03 ▼3.08
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0336.21 ▼0.5035.49 ▼1.31
Add New Post /wp-admin/post-new.php1,533 ▲1923.10 ▲5.47619.99 ▼101.4359.55 ▼14.75
Media Library /wp-admin/upload.php1,388 ▼34.19 ▲0.03103.09 ▼3.5445.13 ▼2.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/kurs-bca/index.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_kurs_bca has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_wp_kurs_bca
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kurs-bca/index.php:12
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/kurs-bca/trunk/index.php on line 224

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: kurs bca, bca rate plugins

kurs-bca/index.php 85% from 13 tests

Analyzing the main PHP file in "Kurs BCA" version 2.0....
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kurs-bca.php" instead of "index.php")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "2.0....")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,551 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32453721,551

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity110.33
▷ Minimum class complexity3.00
▷ Maximum class complexity197.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods178
▷ Static methods21.12%
▷ Public methods14682.02%
▷ Protected methods3217.98%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants42
▷ Global constants42100.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
PNG images were not found in this plugin