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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.93 ▼40.57 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.62 ▼50.30 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 7.21 ▼41.07 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.53 ▼87.08 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.60 ▲0.30 | 1.64 ▼0.89 | 43.84 ▼0.48 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▲0.90 | 104.80 ▼13.14 | 41.03 ▼3.08 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.03 | 36.21 ▼0.50 | 35.49 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.10 ▲5.47 | 619.99 ▼101.43 | 59.55 ▼14.75 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▲0.03 | 103.09 ▼3.54 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 245 | 372 | 1,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 code | 0.49 |
Average class complexity | 110.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 2 | 1.12% |
▷ Public methods | 146 | 82.02% |
▷ Protected methods | 32 | 17.98% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 42 | |
▷ Global constants | 42 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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