Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.42ms] Passed 4 tests
Server-side resources used by My Restaurant Reviews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.35 ▼1.12 |
Dashboard /wp-admin | 3.48 ▲0.18 | 54.69 ▼1.82 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 52.17 ▼0.29 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 90.96 ▼6.45 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.28 ▲0.22 |
My Restaurant Reviews /wp-admin/options-general.php?page=my_restaurant_reviews | 3.38 | 39.28 |
Server storage [IO: ▲0.07MB] [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: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for My Restaurant Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.86 ▼0.73 | 9.45 ▲7.70 | 43.28 ▲0.56 |
Dashboard /wp-admin | 2,211 ▲23 | 5.81 ▲0.91 | 98.75 ▼9.12 | 40.21 ▼6.92 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.00 ▼0.18 | 36.96 ▼4.05 | 33.24 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 23.59 ▲5.39 | 684.33 ▲12.86 | 57.92 ▲2.15 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.24 ▲0.06 | 99.41 ▼7.09 | 43.48 ▼3.17 |
My Restaurant Reviews /wp-admin/options-general.php?page=my_restaurant_reviews | 1,060 | 2.19 | 26.95 | 32.68 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/my-restaurant-reviews/admin/partials/mrr-admin-display.php
- > /wp-content/plugins/my-restaurant-reviews/public/partials/mrr-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: google-my-business, google-maps, restaurant, google, reviews...
my-restaurant-reviews/my-restaurant-reviews.php 92% from 13 tests
The main PHP file in "My Restaurant Reviews" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin946 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 257 | 787 | 831 |
CSS | 2 | 16 | 9 | 62 |
JavaScript | 2 | 10 | 0 | 53 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 2 | 3.28% |
▷ Public methods | 47 | 77.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 22.95% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected