Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Parse error in wp-content/plugins/online-pre-travel-shopping/widget/sftsWidget.php+37
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.08ms] Passed 4 tests
Server-side resources used by Online Pre-Travel Shopping
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.59 ▼5.19 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.19 ▼4.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.38 ▼0.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.70 ▼18.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.21 ▲1.24 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Online Pre-Travel Shopping
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼1.06 | 1.52 ▼0.27 | 38.22 ▼9.35 |
Dashboard /wp-admin | 2,206 ▲30 | 5.79 ▼0.12 | 94.53 ▼18.12 | 37.89 ▼9.87 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.06 | 35.33 ▼1.88 | 33.74 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.19 ▲0.09 | 594.56 ▼8.47 | 55.57 ▼11.66 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.22 ▲0.02 | 98.05 ▼2.59 | 41.95 ▼0.99 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/online-pre-travel-shopping/views/admin/demo/narrow.php
- > /wp-content/plugins/online-pre-travel-shopping/views/admin/demo/rectangle.php
- > /wp-content/plugins/online-pre-travel-shopping/views/admin/demo/dynamic.php
- > /wp-content/plugins/online-pre-travel-shopping/views/admin/demo_page.php
- > /wp-content/plugins/online-pre-travel-shopping/views/admin/demo/wide.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant SF_TRAVELSHOPPING_ABSPATH - assumed 'SF_TRAVELSHOPPING_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/online-pre-travel-shopping/views/admin/demo_page.php on line 17
- > PHP Warning
include(): Failed opening 'SF_TRAVELSHOPPING_ABSPATHviews/admin/demo/dynamic.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/online-pre-travel-shopping/views/admin/demo_page.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/online-pre-travel-shopping/views/front/search_form.php:2
- > PHP Warning
include(SF_TRAVELSHOPPING_ABSPATHviews/admin/demo/narrow.php): failed to open stream: No such file or directory in wp-content/plugins/online-pre-travel-shopping/views/admin/demo_page.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/online-pre-travel-shopping/views/admin/settings.php:11
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/online-pre-travel-shopping/widget/sftsWidget.php on line 37
- > PHP Warning
Use of undefined constant SF_TRAVELSHOPPING_ABSPATH - assumed 'SF_TRAVELSHOPPING_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/online-pre-travel-shopping/views/admin/demo_page.php on line 22
- > PHP Warning
include(SF_TRAVELSHOPPING_ABSPATHviews/admin/demo/rectangle.php): failed to open stream: No such file or directory in wp-content/plugins/online-pre-travel-shopping/views/admin/demo_page.php on line 7
- > PHP Warning
include(): Failed opening 'SF_TRAVELSHOPPING_ABSPATHviews/admin/demo/rectangle.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/online-pre-travel-shopping/views/admin/demo_page.php on line 7
- > PHP Warning
Use of undefined constant SF_TRAVELSHOPPING_ABSPATH - assumed 'SF_TRAVELSHOPPING_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/online-pre-travel-shopping/views/admin/demo_page.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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: You are using too many tags: 16 tag instead of maximum 10
online-pre-travel-shopping/shopnfly-onlinepre-travelshopping.php 85% from 13 tests
The main PHP file in "Online Pre-Travel Shopping" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("online-pre-travel-shopping.php" instead of "shopnfly-onlinepre-travelshopping.php")
- Description: The description should be shorter than 140 characters (currently 448 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,778 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 54 | 90 | 1,303 |
PHP | 12 | 67 | 61 | 651 |
JavaScript | 3 | 28 | 25 | 495 |
PO File | 5 | 100 | 108 | 315 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.72MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 253.95KB | 65.95KB | ▼ 74.03% |
assets/icon-128x128.png | 18.60KB | 5.50KB | ▼ 70.43% |
assets/screenshot-5.png | 45.10KB | 12.64KB | ▼ 71.97% |
images/flight_to.png | 1.65KB | 0.54KB | ▼ 67.18% |
images/marker.png | 0.64KB | 0.71KB | 0.00% |