Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.77ms] Passed 4 tests
An overview of server-side resources used by Food Truck Locations & Times
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.11 | 41.53 ▼4.57 |
Dashboard /wp-admin | 3.45 ▲0.07 | 54.78 ▼16.03 |
Posts /wp-admin/edit.php | 3.57 ▲0.17 | 53.92 ▲4.16 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.11 | 94.28 ▼10.65 |
Media Library /wp-admin/upload.php | 3.38 ▲0.11 | 38.98 ▲5.51 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_food-truck |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Food Truck Locations & Times: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲149 | 13.45 ▼1.04 | 9.13 ▲7.34 | 42.96 ▼1.60 |
Dashboard /wp-admin | 2,213 ▲33 | 5.62 ▼0.07 | 90.23 ▲0.05 | 37.38 ▼7.86 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.16 ▲0.18 | 39.74 ▼4.59 | 35.70 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,541 ▲6 | 23.32 ▲5.01 | 666.67 ▼5.51 | 53.02 ▼14.89 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.36 ▲0.07 | 104.38 ▼2.72 | 42.11 ▼8.44 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_food-truck
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/food-truck/templates/full_item.php
- > /wp-content/plugins/food-truck/admin/templates/locations.php
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/food-truck/templates/full_item.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/food-truck/admin/templates/locations.php:193
- > PHP Notice
Undefined variable: is_tomorrow in wp-content/plugins/food-truck/templates/full_item.php on line 7
- > PHP Notice
Undefined variable: location in wp-content/plugins/food-truck/templates/full_item.php on line 2
- > PHP Notice
Undefined variable: close_time in wp-content/plugins/food-truck/templates/full_item.php on line 13
- > PHP Warning
Use of undefined constant TRUCKLOT_THEME_URI - assumed 'TRUCKLOT_THEME_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/food-truck/admin/templates/locations.php on line 52
- > PHP Warning
Use of undefined constant TRUCKLOT_THEME_URI - assumed 'TRUCKLOT_THEME_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/food-truck/admin/templates/locations.php on line 28
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/food-truck/templates/full_item.php on line 2
- > PHP Notice
Undefined variable: location in wp-content/plugins/food-truck/templates/full_item.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function foodtruck_get_upcoming_locations() in wp-content/plugins/food-truck/templates/summary.php:3
- > 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
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: food truck, locations, map, dates, google map...
food-truck/food-truck.php Passed 13 tests
The principal PHP file in "Food Truck Locations & Times" v. 1.0.15 is loaded by WordPress automatically on each request
56 characters long description:
Food Truck Location & Dates plugin built for Food Trucks
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/food-truck/readme.url
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 232 | 96 | 1,248 |
Sass | 2 | 32 | 7 | 302 |
JavaScript | 2 | 68 | 316 | 211 |
CSS | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.08MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/example-full.png | 37.07KB | 34.70KB | ▼ 6.39% |
admin/assets/example-change-text.png | 7.52KB | 6.72KB | ▼ 10.63% |
admin/assets/example-summary.png | 16.20KB | 15.11KB | ▼ 6.73% |
admin/assets/example-list.png | 24.36KB | 23.40KB | ▼ 3.97% |