Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▲3.69ms] Passed 4 tests
This is a short check of server-side resources used by Shinobi Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.69 | 50.51 ▲10.83 |
Dashboard /wp-admin | 3.97 ▲0.66 | 51.82 ▲6.23 |
Posts /wp-admin/edit.php | 4.03 ▲0.66 | 49.47 ▲0.80 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 88.30 ▼2.34 |
Media Library /wp-admin/upload.php | 3.90 ▲0.66 | 42.81 ▲10.05 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 86 new files
Database: 3 new tables, 11 new options
New tables |
---|
wp_shinobi_options |
wp_shinobi_membership |
wp_shinobi_reviews |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
shinobi_membership_table_ver |
widget_recent-comments |
widget_shinobireviews__formgroupwidget |
widget_recent-posts |
shinobi_options_table_ver |
can_compress_scripts |
shinobiReviewsVersion |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Shinobi Reviews
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲90 | 14.36 ▼0.04 | 1.76 ▲0.12 | 43.99 ▲0.18 |
Dashboard /wp-admin | 2,254 ▲74 | 5.61 ▼0.07 | 81.89 ▼5.66 | 38.36 ▼7.93 |
Posts /wp-admin/edit.php | 2,156 ▲74 | 2.03 ▲0.07 | 35.97 ▼0.40 | 33.98 ▼0.68 |
Add New Post /wp-admin/post-new.php | 6,208 ▲4,677 | 18.94 ▼4.11 | 868.29 ▲202.65 | 63.22 ▲9.81 |
Media Library /wp-admin/upload.php | 1,456 ▲59 | 4.25 ▲0.03 | 96.18 ▼7.52 | 41.00 ▼2.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables detected upon uninstall: 3 tables
- wp_shinobi_reviews
- wp_shinobi_options
- wp_shinobi_membership
- This plugin does not fully uninstall, leaving 11 options in the database
- db_upgraded
- shinobiReviewsVersion
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- shinobi_membership_table_ver
- widget_recent-posts
- shinobi_reviews_table_ver
- widget_shinobireviews__formgroupwidget
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/bootstrap.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-sample.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shinobi-reviews/App/Widgets/FormGroupWidget.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-converter.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-constraint.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-svg.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-db.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shinobi-reviews/vendor/shinobiworks/core/tests/test-form-parts.php:12
- > PHP Fatal error
Uncaught Error: Class 'Shinobi_Reviews\\App\\Setup\\Migration' not found in wp-content/plugins/shinobi-reviews/App/Setup/Bootstrap.php:18
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: i18n, rating, review, multilingual
shinobi-reviews/shinobi-reviews.php Passed 13 tests
The entry point to "Shinobi Reviews" version 1.6.0 is a PHP file that has certain tags in its header comment area
89 characters long description:
A review plugin for gathering many customer reviews and make friends with search engines.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,090 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 737 | 1,665 | 3,626 |
JSON | 6 | 0 | 0 | 137 |
JavaScript | 4 | 18 | 4 | 134 |
Bourne Shell | 1 | 21 | 11 | 123 |
XML | 2 | 12 | 27 | 45 |
YAML | 1 | 8 | 0 | 21 |
Markdown | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 48 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 225 | |
▷ Static methods | 91 | 40.44% |
▷ Public methods | 206 | 91.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 8.44% |
Functions | 11 | |
▷ Named functions | 1 | 9.09% |
▷ Anonymous functions | 10 | 90.91% |
Constants | 19 | |
▷ Global constants | 15 | 78.95% |
▷ Class constants | 4 | 21.05% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-772x250.png | 72.45KB | 26.83KB | ▼ 62.97% |