Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.66MB] [CPU: ▼289.61ms] Passed 4 tests
A check of server-side resources used by Magee Restaurant
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.67 | 61.41 ▲10.78 |
Dashboard /wp-admin | 4.05 ▲0.64 | 37.03 ▲3.46 |
Posts /wp-admin/edit.php | 4.34 ▲0.70 | 43.54 ▲5.04 |
Add New Post /wp-admin/post-new.php | 7.58 ▲0.61 | 97.89 ▼1,171.37 |
Media Library /wp-admin/upload.php | 3.99 ▲0.70 | 28.36 ▲4.44 |
Add New Menu /wp-admin/post-new.php?post_type=magee-restaurant | 4.20 | 44.79 |
Install Plugins /wp-admin/themes.php?page=magee-restaurant-install-plugins | 4.00 | 27.26 |
Settings /wp-admin/edit.php?post_type=magee-restaurant&page=mgrt-setting | 3.97 | 26.49 |
Restaurant Menus /wp-admin/edit.php?post_type=magee-restaurant | 4.04 | 27.96 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 16 new options
New WordPress options |
---|
mgrt_ct_specific_position_x |
mgrt_thumbnail_image_display |
mgrt_ct_tab_title |
mgrt_ct_show_type_product |
mgrt_ct_show_404_page |
mgrt_ct_show_type_page |
mgrt_thumbnail_width |
mgrt_ct_specific_position_y |
mgrt_ct_show_type_post |
mgrt_thumbnail_height |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Magee Restaurant
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,995 ▲273 | 16.93 ▲1.29 | 9.36 ▲3.47 | 18.83 ▲15.94 |
Dashboard /wp-admin | 2,993 ▲132 | 7.05 ▲0.88 | 115.30 ▼24.71 | 169.95 ▲11.24 |
Posts /wp-admin/edit.php | 2,802 ▲145 | 3.24 ▼0.00 | 69.47 ▲6.11 | 177.96 ▲33.38 |
Add New Post /wp-admin/post-new.php | 1,741 ▲80 | 22.43 ▲6.42 | 410.83 ▼35.95 | 169.57 ▲8.28 |
Media Library /wp-admin/upload.php | 1,806 ▲105 | 6.06 ▲0.55 | 116.01 ▼21.98 | 199.48 ▲16.30 |
Add New Menu /wp-admin/post-new.php?post_type=magee-restaurant | 2,514 | 4.64 | 80.01 | 172.36 |
Install Plugins /wp-admin/themes.php?page=magee-restaurant-install-plugins | 1,317 | 3.14 | 58.11 | 125.24 |
Settings /wp-admin/edit.php?post_type=magee-restaurant&page=mgrt-setting | 1,293 | 3.11 | 70.28 | 143.14 |
Restaurant Menus /wp-admin/edit.php?post_type=magee-restaurant | 1,455 | 3.49 | 65.04 | 148.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 16 options in the database
- mgrt_ct_horizontal_position
- mgrt_thumbnail_style
- mgrt_thumbnail_height
- mgrt_primary_color
- mgrt_thumbnail_image_display
- mgrt_ct_specific_position_x
- mgrt_thumbnail_width
- mgrt_ct_show_type_page
- mgrt_ct_display_cart
- mgrt_ct_tab_title
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/magee-restaurant/inc/class-tgm-plugin-activation.php:2130
- > 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 issues were found
Optimizations
Plugin configuration 96% from 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
8 plugin tags: slider, product slider, woocommerce slider, shortcode, restaurant...
magee-restaurant/magee-restaurant.php 92% from 13 tests
The principal PHP file in "Magee Restaurant" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 507 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,451 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 738 | 1,693 | 2,920 |
CSS | 3 | 163 | 28 | 827 |
JavaScript | 4 | 208 | 99 | 704 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 39.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 118 | |
▷ Static methods | 7 | 5.93% |
▷ Public methods | 95 | 80.51% |
▷ Protected methods | 23 | 19.49% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
28 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/prettyPhoto/dark_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
assets/images/prettyPhoto/light_rounded/sprite.png | 4.00KB | 2.56KB | ▼ 36.16% |
assets/images/prettyPhoto/light_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
assets/images/prettyPhoto/default/sprite_prev.png | 1.34KB | 0.38KB | ▼ 71.73% |
assets/images/prettyPhoto/dark_rounded/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |