Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼4.30ms] Passed 4 tests
This is a short check of server-side resources used by Recras WordPress plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 38.78 ▼9.26 |
Dashboard /wp-admin | 3.91 ▲0.57 | 54.46 ▼6.55 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 50.12 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 97.43 ▼2.40 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 39.99 ▲4.50 |
/wp-admin/admin.php?page=form-booking | 3.97 | 462.75 |
Shortcodes /wp-admin/admin.php?page=recras-shortcodes | 3.75 | 34.80 |
/wp-admin/admin.php?page=form-contact | 3.98 | 423.79 |
Cache /wp-admin/admin.php?page=recras-clear-cache | 3.74 | 36.02 |
/wp-admin/admin.php?page=form-arrangement | 3.91 | 35.92 |
/wp-admin/admin.php?page=form-voucher-info | 3.75 | 256.37 |
/wp-admin/admin.php?page=form-bookprocess | 3.79 | 357.21 |
Documentation /wp-admin/admin.php?page=recras-documentation | 3.77 | 35.73 |
/wp-admin/admin.php?page=form-product | 3.88 | 386.13 |
Settings /wp-admin/admin.php?page=recras | 3.75 | 36.88 |
Server storage [IO: ▲1.37MB] [DB: ▲0.08MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 147 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Recras WordPress plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲213 | 15.27 ▲1.00 | 21.48 ▲19.58 | 36.57 ▼7.02 |
Dashboard /wp-admin | 2,256 ▲79 | 5.46 ▼0.07 | 111.39 ▲14.02 | 69.94 ▲21.95 |
Posts /wp-admin/edit.php | 2,182 ▲85 | 2.66 ▲0.63 | 50.63 ▲10.81 | 32.23 ▼0.40 |
Add New Post /wp-admin/post-new.php | 6,270 ▲4,735 | 26.69 ▲1.69 | 1,014.23 ▲362.35 | 39.40 ▼23.80 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 5.05 ▲0.72 | 104.27 ▲7.89 | 77.52 ▲36.92 |
/wp-admin/admin.php?page=form-booking | 1,083 | 2.39 | 39.33 | 24.94 |
Shortcodes /wp-admin/admin.php?page=recras-shortcodes | 1,459 | 2.43 | 40.04 | 33.22 |
/wp-admin/admin.php?page=form-contact | 758 | 1.51 | 8.95 | 14.80 |
Cache /wp-admin/admin.php?page=recras-clear-cache | 869 | 2.26 | 37.92 | 27.28 |
/wp-admin/admin.php?page=form-arrangement | 992 | 2.26 | 37.51 | 22.55 |
/wp-admin/admin.php?page=form-voucher-info | 925 | 2.28 | 38.64 | 24.94 |
/wp-admin/admin.php?page=form-bookprocess | 962 | 2.25 | 36.62 | 24.91 |
Documentation /wp-admin/admin.php?page=recras-documentation | 1,299 | 2.24 | 39.94 | 39.42 |
/wp-admin/admin.php?page=form-product | 1,021 | 2.34 | 38.56 | 24.17 |
Settings /wp-admin/admin.php?page=recras | 979 | 2.26 | 36.69 | 27.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 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
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- recovery_mode_email_last_sent
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=form-contact
- > Error in wp-content/plugins/recras/editor/form-contact.php+22
Uncaught Error: Object of class stdClass could not be converted to string in wp-content/plugins/recras/editor/form-contact.php:22
Stack trace:
#0 wp-content/plugins/recras/src/ContactForm.php(711): require_once()
#1 wp-includes/class-wp-hook.php(310): Recras\ContactForm::showForm()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=form-contact
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/recras/recras-wordpress-plugin.php
- 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Recras\\WordPressUnitTestCase' not found in wp-content/plugins/recras/tests/test-contact-form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recras/editor/form-voucher-info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recras/editor/form-voucher-sales.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recras/editor/form-arrangement.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/recras/src/admin/cache.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/recras/tests/test-recras-wordpress-plugin.php:4
- > PHP Fatal error
Uncaught Error: Class 'Recras\\WordPressUnitTestCase' not found in wp-content/plugins/recras/tests/test-arrangement.php:4
- > PHP Fatal error
Uncaught Error: Class 'Recras\\WordPressUnitTestCase' not found in wp-content/plugins/recras/tests/test-booking.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/recras/src/admin/documentation.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/recras/src/admin/settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: voucher, recras, reservation, recreation, booking
recras/recras-wordpress-plugin.php 92% from 13 tests
"Recras WordPress plugin" version 6.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("recras.php" instead of "recras-wordpress-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected20,448 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 1,024 | 57 | 8,058 |
PHP | 60 | 1,156 | 2,183 | 7,241 |
PO File | 8 | 1,457 | 1,981 | 3,125 |
CSS | 12 | 110 | 55 | 790 |
Markdown | 3 | 240 | 0 | 656 |
JSON | 6 | 0 | 0 | 272 |
Bourne Shell | 2 | 51 | 37 | 266 |
SVG | 10 | 0 | 0 | 20 |
XML | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 19.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 39 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 335 | |
▷ Static methods | 112 | 33.43% |
▷ Public methods | 285 | 85.07% |
▷ Protected methods | 23 | 6.87% |
▷ Private methods | 27 | 8.06% |
Functions | 9 | |
▷ Named functions | 4 | 44.44% |
▷ Anonymous functions | 5 | 55.56% |
Constants | 22 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 22 | 100.00% |
▷ Public constants | 15 | 68.18% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.34MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 90.21KB | 34.95KB | ▼ 61.26% |
assets/banner-772x250.png | 0.99KB | 0.12KB | ▼ 88.31% |
assets/screenshot-3.png | 33.28KB | 20.27KB | ▼ 39.10% |
assets/icon-256x256.png | 6.28KB | 6.57KB | 0.00% |
images/timepicker_native.png | 9.57KB | 6.14KB | ▼ 35.83% |