Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.22MB] [CPU: ▲3.47ms] Passed 4 tests
This is a short check of server-side resources used by RW Elephant Rental Inventory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.69 ▲1.22 | 48.94 ▲10.07 |
Dashboard /wp-admin | 4.54 ▲1.20 | 59.29 ▼2.30 |
Posts /wp-admin/edit.php | 4.66 ▲1.30 | 53.80 ▲9.77 |
Add New Post /wp-admin/post-new.php | 7.12 ▲1.23 | 97.29 ▲0.19 |
Media Library /wp-admin/upload.php | 4.44 ▲1.21 | 41.62 ▲6.20 |
RW Elephant /wp-admin/options-general.php?page=rw-elephant | 4.45 | 44.19 |
Server storage [IO: ▲2.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 88 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_rwe_wishlist_widget |
rw-elephant-rental-inventory |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
RW Elephant Rental Inventory: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,045 ▲283 | 15.42 ▲1.26 | 6.07 ▲4.40 | 41.29 ▼2.86 |
Dashboard /wp-admin | 2,364 ▲186 | 6.42 ▲0.76 | 107.24 ▼8.37 | 37.55 ▼6.93 |
Posts /wp-admin/edit.php | 2,289 ▲189 | 3.58 ▲1.64 | 52.26 ▲12.09 | 31.76 ▼5.75 |
Add New Post /wp-admin/post-new.php | 1,552 ▲17 | 23.20 ▼1.89 | 588.61 ▼38.83 | 34.89 ▼26.10 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.43 ▲0.23 | 84.41 ▼28.00 | 45.27 ▲2.35 |
RW Elephant /wp-admin/options-general.php?page=rw-elephant | 1,304 | 3.24 | 43.77 | 90.18 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_rwe_wishlist_widget
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wishlist_errors() in wp-content/plugins/rw-elephant-rental-inventory/templates/submit-wishlist.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/rw-elephant-rental-inventory/templates/inventory-item.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function rwe_invoice_details() in wp-content/plugins/rw-elephant-rental-inventory/templates/invoice-terms.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/rw-elephant-rental-inventory/templates/no-products.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/rw-elephant-rental-inventory/templates/single-item-content.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/rw-elephant-rental-inventory/templates/gallery-header.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rw-elephant-rental-inventory/templates/invoice-pay.php:12
- > 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 Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: events, gallery, wishlist, inventory, rental
rw-elephant-rental-inventory/rw-elephant-rental-inventory.php 85% from 13 tests
The main PHP script in "RW Elephant Rental Inventory" version 2.3.3 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin15,327 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 2,968 | 2,269 | 5,602 |
JavaScript | 23 | 1,657 | 497 | 5,255 |
CSS | 16 | 352 | 300 | 3,815 |
PO File | 1 | 251 | 290 | 583 |
SVG | 4 | 0 | 1 | 72 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 4 | 19.05% |
Methods | 143 | |
▷ Static methods | 10 | 6.99% |
▷ Public methods | 130 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 9.09% |
Functions | 116 | |
▷ Named functions | 94 | 81.03% |
▷ Anonymous functions | 22 | 18.97% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/assets/img/no-image-found.png | 2.60KB | 2.60KB | 0.00% |
lib/assets/img/icon-right.png | 0.21KB | 0.22KB | 0.00% |
lib/assets/img/icon-left.png | 0.21KB | 0.21KB | 0.00% |
lib/assets/img/layout-icon-reversed.png | 1.51KB | 1.51KB | 0.00% |
lib/assets/img/layout-icon.png | 1.46KB | 1.46KB | 0.00% |