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.04MB] [CPU: ▼5.16ms] Passed 4 tests
Server-side resources used by Viberent Rental Management Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▼0.52 | 22.24 ▼18.24 |
Dashboard /wp-admin | 3.42 ▲0.12 | 49.63 ▲1.21 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.44 ▲3.25 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.03 ▼6.85 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.65 ▲4.15 |
Server storage [IO: ▲4.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Viberent Rental Management Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,447 ▼288 | 13.15 ▼1.23 | 0.49 ▼1.35 | 9.43 ▼40.30 |
Dashboard /wp-admin | 2,226 ▲38 | 5.90 ▲0.80 | 108.83 ▲4.35 | 39.74 ▼5.51 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.04 ▲0.05 | 40.14 ▲3.42 | 35.20 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,685 ▲171 | 22.21 ▲4.74 | 594.41 ▼87.04 | 74.65 ▲11.76 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.25 ▲0.07 | 96.59 ▼2.86 | 45.86 ▲3.28 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/login-to-viberent/templates/place_my_order.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-to-viberent/functions-layout-api.php:371
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/login-to-viberent/templates/thank_shopping.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/login-to-viberent/templates/item_page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/login-to-viberent/viberent-hook.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/login-to-viberent/templates/my_cart.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/login-to-viberent/login-to-viberent.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-to-viberent/templates/layout_page_ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/login-to-viberent/templates/item_page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/login-to-viberent/templates/category_page.php:3
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
login-to-viberent/login-to-viberent.php 85% from 13 tests
The entry point to "Viberent Rental Management Plugin" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 470 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Everything looks great! No dangerous files found in this plugin33,381 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 3,580 | 64 | 16,592 |
SVG | 3 | 0 | 0 | 9,552 |
JavaScript | 3 | 1,095 | 509 | 3,673 |
PHP | 11 | 97 | 42 | 3,564 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.50MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/category.png | 259.05KB | 85.64KB | ▼ 66.94% |
assets/images/icon-delete.png | 0.24KB | 0.24KB | ▼ 1.60% |
(invalid) assets/images/no_image.png | 3.80KB | 0.00KB | ▼ 100.00% |
assets/images/item.png | 241.98KB | 80.35KB | ▼ 66.79% |
assets/images/VibeRent-LOGO.png | 8.73KB | 5.08KB | ▼ 41.82% |