Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.14ms] Passed 4 tests
A check of server-side resources used by Ticket Restaurant for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.75 ▼10.82 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.55 ▼5.72 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.14 ▲3.82 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.07 ▼11.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.22 ▲3.55 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
ticketrestaurant_mobile_auth_code |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ticket Restaurant for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.31 ▼1.31 | 1.57 ▼0.60 | 39.98 ▼4.26 |
Dashboard /wp-admin | 2,213 ▲22 | 5.85 ▼0.03 | 111.13 ▼5.09 | 43.18 ▼0.07 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.99 ▼0.02 | 42.31 ▲5.10 | 37.82 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,541 ▲6 | 23.06 ▼0.09 | 600.64 ▼94.78 | 53.00 ▼9.85 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.24 ▲0.02 | 95.65 ▼1.63 | 42.81 ▼1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- ticketrestaurant_mobile_auth_code
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/ticket-restaurant-mobile-for-woocommerce/includes/views/order-meta-box.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ticket-restaurant-mobile-for-woocommerce/includes/views/html-admin-page.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: gateway, ticketrestaurant, woocommerce, e-commerce, payment...
ticket-restaurant-mobile-for-woocommerce/ticket-restaurant-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Ticket Restaurant for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ticket-restaurant-mobile-for-woocommerce.php" instead of "ticket-restaurant-for-woocommerce.php")
- Domain Path: The domain path points to a folder that does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected960 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 148 | 108 | 783 |
PO File | 1 | 120 | 240 | 177 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 1 | 2.44% |
▷ Private methods | 2 | 4.88% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ticket-restaurant-mobile-icon.png | 2.58KB | 1.95KB | ▼ 24.44% |