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 gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.51ms] Passed 4 tests
Analyzing server-side resources used by WP Pizzeria
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 51.98 ▲11.11 |
Dashboard /wp-admin | 3.47 ▲0.16 | 52.96 ▼1.08 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.13 ▼0.41 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 88.28 ▼7.07 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 44.50 ▲10.60 |
Pizzas /wp-admin/edit.php?post_type=wp_pizzeria_pizza | 3.39 | 37.60 |
Add pizza /wp-admin/post-new.php?post_type=wp_pizzeria_pizza | 3.49 | 53.25 |
Dessert categories /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_dessert_category&post_type=wp_pizzeria_dessert | 3.39 | 39.64 |
Beverages /wp-admin/edit.php?post_type=wp_pizzeria_beverage | 3.43 | 40.50 |
Pizza ingredients /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_ingredient&post_type=wp_pizzeria_pizza | 3.38 | 36.62 |
Beverage categories /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_beverage_category&post_type=wp_pizzeria_beverage | 3.39 | 39.18 |
Add Beverage /wp-admin/post-new.php?post_type=wp_pizzeria_beverage | 3.49 | 47.71 |
Add Pasta /wp-admin/post-new.php?post_type=wp_pizzeria_pasta | 3.48 | 48.37 |
Pasta categories /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_pasta_category&post_type=wp_pizzeria_pasta | 3.39 | 36.17 |
Desserts /wp-admin/edit.php?post_type=wp_pizzeria_dessert | 3.43 | 39.24 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Pizzeria
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,056 ▲295 | 13.61 ▼0.59 | 11.78 ▲9.96 | 57.17 ▲16.85 |
Dashboard /wp-admin | 2,367 ▲167 | 5.87 ▲0.01 | 108.02 ▼2.05 | 41.93 ▲1.03 |
Posts /wp-admin/edit.php | 2,249 ▲152 | 2.02 ▼0.03 | 35.52 ▼4.94 | 33.03 ▼3.53 |
Add New Post /wp-admin/post-new.php | 1,648 ▲117 | 17.57 ▼5.77 | 686.23 ▼1.19 | 57.51 ▼1.32 |
Media Library /wp-admin/upload.php | 1,549 ▲149 | 4.25 ▲0.01 | 104.03 ▼3.87 | 45.64 ▲0.87 |
Pizzas /wp-admin/edit.php?post_type=wp_pizzeria_pizza | 1,240 | 1.97 | 32.98 | 27.03 |
Add pizza /wp-admin/post-new.php?post_type=wp_pizzeria_pizza | 2,587 | 7.85 | 176.33 | 64.37 |
Dessert categories /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_dessert_category&post_type=wp_pizzeria_dessert | 1,448 | 2.41 | 29.24 | 32.52 |
Beverages /wp-admin/edit.php?post_type=wp_pizzeria_beverage | 1,240 | 1.97 | 31.04 | 30.31 |
Pizza ingredients /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_ingredient&post_type=wp_pizzeria_pizza | 1,433 | 2.23 | 28.78 | 30.06 |
Beverage categories /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_beverage_category&post_type=wp_pizzeria_beverage | 1,448 | 2.30 | 28.91 | 30.68 |
Add Beverage /wp-admin/post-new.php?post_type=wp_pizzeria_beverage | 2,504 | 7.61 | 166.55 | 58.16 |
Add Pasta /wp-admin/post-new.php?post_type=wp_pizzeria_pasta | 2,503 | 7.78 | 158.97 | 60.22 |
Pasta categories /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_pasta_category&post_type=wp_pizzeria_pasta | 1,448 | 2.32 | 27.18 | 32.34 |
Desserts /wp-admin/edit.php?post_type=wp_pizzeria_dessert | 1,243 | 1.95 | 32.21 | 31.97 |
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 detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wp_pizzeria_pizza
- > Notice in wp-content/plugins/wp-pizzeria/custom-post-type-pizza.php+153
Undefined index: sizes
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wp_pizzeria_pasta
- > Warning in wp-content/plugins/wp-pizzeria/custom-post-type-pasta.php+86
array_key_exists() expects parameter 2 to be array, bool given
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
Please take a closer look at the following
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-pizzeria/wp_pizzeria.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-pizzeria/beverage-display.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pizzeria/taxonomy-pasta-categories.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pizzeria/custom-post-type-beverage.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-pizzeria/dessert-display.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pizzeria/pizza-settings-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pizzeria/taxonomy-beverage-categories.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pizzeria/taxonomy-dessert-categories.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pizzeria/custom-post-type-pizza.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-pizzeria/pasta-display.php:76
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=wp_pizzeria_pizza
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=wp_pizzeria_pizza:433:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=wp_pizzeria_pizza
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- > GET request to /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_ingredient&post_type=wp_pizzeria_pizza
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-pizzeria/js/upload-image.js?ver=6.3.1:3:18)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit-tags.php?taxonomy=wp_pizzeria_ingredient&post_type=wp_pizzeria_pizza
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: pizzeria, carte, restaurant, restaurant menu, carte du jour...
wp-pizzeria/wp_pizzeria.php 85% from 13 tests
"WP Pizzeria" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 272 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-pizzeria.php" instead of "wp_pizzeria.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,424 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 233 | 181 | 2,257 |
CSS | 2 | 0 | 15 | 90 |
JavaScript | 3 | 3 | 26 | 77 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 78 | |
▷ Named functions | 78 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/pasta-icon32.png | 1.43KB | 1.10KB | ▼ 22.66% |
img/icon32.png | 0.97KB | 1.53KB | 0.00% |
img/beverage-icon32.png | 1.01KB | 1.17KB | 0.00% |
img/menu.png | 6.71KB | 2.43KB | ▼ 63.76% |