Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.53MB] [CPU: ▼7.53ms] Passed 4 tests
This is a short check of server-side resources used by WP Airbnb Review Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 40.40 ▼0.81 |
Dashboard /wp-admin | 3.85 ▲0.50 | 52.72 ▼5.96 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 50.66 ▼0.70 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.54 | 83.52 ▼22.63 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 44.03 ▲9.86 |
Templates /wp-admin/admin.php?page=wp_airbnb-templates_posts | 3.86 | 39.15 |
Welcome /wp-admin/admin.php?page=wp_airbnb-welcome | 3.68 | 34.54 |
Review List /wp-admin/admin.php?page=wp_airbnb-reviews | 3.73 | 36.55 |
Get Airbnb Reviews /wp-admin/admin.php?page=wp_airbnb-get_airbnb | 3.68 | 32.54 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 64 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_wpairbnb_post_templates |
wp_wpairbnb_reviews |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
wp-airbnb-review-slider_version |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
wprev_activated_time_airbnb |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Airbnb Review Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲217 | 13.44 ▼1.04 | 8.09 ▲6.43 | 37.42 ▼5.32 |
Dashboard /wp-admin | 2,280 ▲103 | 5.69 ▲0.14 | 89.20 ▲2.59 | 36.23 ▼6.29 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.01 ▼0.01 | 42.98 ▲3.59 | 35.50 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.20 ▲0.19 | 651.98 ▼30.39 | 74.42 ▲20.40 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 4.18 ▼0.03 | 101.95 ▼3.56 | 47.98 ▲2.98 |
Templates /wp-admin/admin.php?page=wp_airbnb-templates_posts | 2,041 | 3.14 | 74.65 | 30.00 |
Welcome /wp-admin/admin.php?page=wp_airbnb-welcome | 893 | 1.73 | 23.78 | 26.48 |
Review List /wp-admin/admin.php?page=wp_airbnb-reviews | 948 | 1.87 | 33.93 | 26.44 |
Get Airbnb Reviews /wp-admin/admin.php?page=wp_airbnb-get_airbnb | 900 | 1.70 | 23.83 | 22.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_airbnb-get_airbnb
- > Notice in wp-content/plugins/wp-airbnb-review-slider/admin/class-wp-airbnb-review-slider-admin.php+330
Trying to access array offset on value of type bool
SRP 50% 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 fix the following items
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-airbnb-review-slider/admin/partials/review_list.php:16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-airbnb-review-slider/public/partials/wp-airbnb-review-slider-public-display-widget.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-airbnb-review-slider/public/class-wp-airbnb-review-slider-widget.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-airbnb-review-slider/public/partials/wp-airbnb-review-slider-public-display.php on line 21
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-airbnb-review-slider/public/partials/wp-airbnb-review-slider-public-display.php on line 17
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-airbnb-review-slider/public/partials/wp-airbnb-review-slider-public-display-widget.php:22
- > PHP Notice
Undefined variable: a in wp-content/plugins/wp-airbnb-review-slider/public/partials/wp-airbnb-review-slider-public-display-widget.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-airbnb-review-slider/admin/partials/get_pro_new.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-airbnb-review-slider/admin/partials/welcome.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-airbnb-review-slider/admin/partials/get_pro.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-airbnb-review-slider ===
)
wp-airbnb-review-slider/wp-airbnb-review-slider.php Passed 13 tests
"WP Airbnb Review Slider" version 3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
102 characters long description:
Allows you to easily display your Airbnb Business Page reviews in your Posts, Pages, and Widget areas.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected8,212 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 834 | 1,524 | 4,115 |
HTML | 1 | 1,964 | 0 | 2,233 |
JavaScript | 9 | 319 | 674 | 1,402 |
CSS | 5 | 22 | 20 | 462 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 45.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 5 | 3.38% |
▷ Public methods | 123 | 83.11% |
▷ Protected methods | 16 | 10.81% |
▷ Private methods | 9 | 6.08% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 23 | 100.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
16 PNG files occupy 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/template2_thumb.png | 26.88KB | 9.18KB | ▼ 65.86% |
public/partials/imgs/stars_4_yellow.png | 6.73KB | 1.87KB | ▼ 72.14% |
public/partials/imgs/stars_5_yellow.png | 6.71KB | 1.90KB | ▼ 71.61% |
public/partials/imgs/stars_3_yellow.png | 6.73KB | 1.91KB | ▼ 71.68% |
admin/partials/template1_thumb.png | 27.86KB | 9.86KB | ▼ 64.61% |