Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲5.49MB] [CPU: ▲22.59ms] 75% from 4 tests
This is a short check of server-side resources used by WP TripAdvisor Review Slider
Please take the time to fix the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.49MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.21 ▲5.75 | 65.13 ▲21.98 |
Dashboard /wp-admin | 9.23 ▲5.88 | 79.22 ▲14.45 |
Posts /wp-admin/edit.php | 9.23 ▲5.87 | 84.28 ▲38.73 |
Add New Post /wp-admin/post-new.php | 10.33 ▲4.44 | 122.43 ▲22.57 |
Media Library /wp-admin/upload.php | 9.23 ▲6.00 | 68.92 ▲31.37 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.23 | 67.51 |
Server storage [IO: ▲3.96MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 256 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_wptripadvisor_reviews |
wp_wptripadvisor_post_templates |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
fs_active_plugins |
theysaidso_admin_options |
can_compress_scripts |
wp-tripadvisor-review-slider_current_db_version |
widget_theysaidso_widget |
wprev_activated_time_trip |
fs_accounts |
... |
Browser metrics Passed 4 tests
WP TripAdvisor Review Slider: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲234 | 13.44 ▼0.91 | 8.29 ▲6.61 | 27.80 ▼17.24 |
Dashboard /wp-admin | 2,273 ▲102 | 5.57 ▲0.05 | 96.37 ▼7.20 | 46.04 ▼0.14 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.00 ▲0.06 | 40.03 ▼1.15 | 39.41 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 22.88 ▼0.29 | 615.41 ▼58.82 | 51.61 ▲0.77 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.20 ▼0.02 | 97.58 ▼17.05 | 43.60 ▼3.28 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,091 | 1.69 | 27.74 | 30.70 |
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
- The uninstall procedure has failed, leaving 10 options in the database
- fs_debug_mode
- db_upgraded
- fs_active_plugins
- widget_recent-comments
- wp-tripadvisor-review-slider_current_db_version
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_accounts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-tripadvisor-review-slider/public/partials/wp-tripadvisor-review-slider-public-display-widget.php on line 20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-tripadvisor-review-slider/public/partials/wp-tripadvisor-review-slider-public-display.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-tripadvisor-review-slider/admin/partials/get_tripadvisor.php:16
- > PHP Notice
Undefined variable: a in wp-content/plugins/wp-tripadvisor-review-slider/public/partials/wp-tripadvisor-review-slider-public-display-widget.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-tripadvisor-review-slider/public/partials/template_style_1.php:16
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-tripadvisor-review-slider/public/partials/wp-tripadvisor-review-slider-public-display.php on line 17
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-tripadvisor-review-slider/public/partials/wp-tripadvisor-review-slider-public-display-widget.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-tripadvisor-review-slider/admin/partials/templates_posts.php:16
- > PHP Notice
Undefined variable: a in wp-content/plugins/wp-tripadvisor-review-slider/public/partials/wp-tripadvisor-review-slider-public-display.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-tripadvisor-review-slider/public/class-wp-tripadvisor-review-slider-widget.php:6
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: reviews, tripadvisor review slider, tripadvisor slider, tripadvisor, testimonials...
wp-tripadvisor-review-slider/wp-tripadvisor-review-slider.php Passed 13 tests
Analyzing the main PHP file in "WP TripAdvisor Review Slider" version 11.9
107 characters long description:
Allows you to easily display your TripAdvisor Business Page reviews in your Posts, Pages, and Widget areas.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected40,953 lines of code in 177 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 141 | 9,103 | 19,092 | 37,955 |
JavaScript | 14 | 372 | 781 | 1,670 |
CSS | 21 | 48 | 40 | 1,114 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 175)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 86.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 175.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,413 | |
▷ Static methods | 202 | 14.30% |
▷ Public methods | 1,000 | 70.77% |
▷ Protected methods | 32 | 2.26% |
▷ Private methods | 381 | 26.96% |
Functions | 107 | |
▷ Named functions | 107 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 169 | |
▷ Global constants | 122 | 72.19% |
▷ Class constants | 47 | 27.81% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.31MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/partials/imgs/tripadvisor_stars_5.png | 5.87KB | 1.63KB | ▼ 72.23% |
admin/partials/logo2.png | 6.61KB | 2.25KB | ▼ 65.94% |
public/partials/imgs/tripadvisor_stars_1.5.png | 1.07KB | 1.08KB | 0.00% |
admin/partials/template3_thumb.png | 65.48KB | 18.84KB | ▼ 71.23% |
admin/partials/logo.png | 13.58KB | 5.51KB | ▼ 59.43% |