Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.79ms] Passed 4 tests
Analyzing server-side resources used by RB Village Extras (rbve)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.86 ▼4.62 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.96 ▼9.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.00 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.94 ▼24.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 39.18 ▲2.62 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for RB Village Extras (rbve)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.54 ▼1.23 | 1.66 ▼0.41 | 44.32 ▲0.78 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.95 | 97.66 ▼7.86 | 37.89 ▼3.89 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.03 | 39.47 ▲3.20 | 36.95 ▲2.49 |
Add New Post /wp-admin/post-new.php | 1,420 ▲9 | 22.19 ▲4.18 | 555.14 ▼60.70 | 42.38 ▲1.38 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.03 | 92.24 ▼12.28 | 40.69 ▼3.09 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/rb-village-extras/admin/partials/rbve-admin-display.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/rb-village-extras/rbve-plugin.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rb-village-extras/templates/colorway/single-rbve_business.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rb-village-extras/includes/custom_shortcodes.php:290
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rb-village-extras/templates/colorway/single-rbve_clubs_societies.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rb-village-extras/templates/colorway/single-rb_village_doc.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== rb-village-extras ===
)
rb-village-extras/rbve-plugin.php 92% from 13 tests
The main file in "RB Village Extras (rbve)" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rb-village-extras.php" instead of "rbve-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,337 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 211 | 561 | 1,219 |
Markdown | 1 | 27 | 0 | 115 |
JavaScript | 1 | 2 | 27 | 3 |
CSS | 2 | 1 | 9 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 27 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin