Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▲5.37ms] Passed 4 tests
Server-side resources used by Reviews Sorted
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 42.55 ▲2.57 |
Dashboard /wp-admin | 3.56 ▲0.25 | 51.78 ▼0.72 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 52.81 ▲9.45 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 107.25 ▲10.16 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 41.29 ▲10.30 |
Email notifications /wp-admin/admin.php?page=reviews-sorted-email-templates | 3.46 | 36.25 |
Review Settings /wp-admin/admin.php?page=reviews-sorted-testimonial-settings | 3.48 | 50.42 |
Local Business Details /wp-admin/admin.php?page=reviews-sorted-business-details | 3.45 | 38.50 |
Reviews List /wp-admin/admin.php?page=reviews-sorted-reviews-list | 3.45 | 39.47 |
Form Settings /wp-admin/admin.php?page=reviews-sorted-form-settings | 3.46 | 35.24 |
Premium Version /wp-admin/admin.php?page=reviews-sorted-premium-version | 3.45 | 39.26 |
Reviews Sorted /wp-admin/admin.php?page=reviews-sorted | 3.44 | 37.14 |
Server storage [IO: ▲2.66MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 70 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_email_schedule |
wp_reviews_email |
wp_reviews |
New WordPress options |
---|
widget_theysaidso_widget |
abl_review_sorted_version |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Reviews Sorted
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲131 | 14.41 ▲0.16 | 2.40 ▲0.73 | 40.59 ▼4.93 |
Dashboard /wp-admin | 2,247 ▲70 | 5.58 ▼0.08 | 90.91 ▼5.94 | 40.07 ▼3.08 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 1.95 ▼0.05 | 38.34 ▲1.95 | 34.58 ▲3.45 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 23.64 ▲0.07 | 682.36 ▼0.35 | 49.30 ▼2.81 |
Media Library /wp-admin/upload.php | 1,607 ▲204 | 4.56 ▲0.39 | 108.02 ▲11.24 | 42.06 ▲0.34 |
Email notifications /wp-admin/admin.php?page=reviews-sorted-email-templates | 1,093 | 1.98 | 24.35 | 34.78 |
Review Settings /wp-admin/admin.php?page=reviews-sorted-testimonial-settings | 1,264 | 3.08 | 45.34 | 67.29 |
Local Business Details /wp-admin/admin.php?page=reviews-sorted-business-details | 916 | 2.03 | 24.58 | 27.02 |
Reviews List /wp-admin/admin.php?page=reviews-sorted-reviews-list | 857 | 2.00 | 26.77 | 28.13 |
Form Settings /wp-admin/admin.php?page=reviews-sorted-form-settings | 1,165 | 2.17 | 27.01 | 30.45 |
Premium Version /wp-admin/admin.php?page=reviews-sorted-premium-version | 910 | 1.97 | 23.42 | 31.05 |
Reviews Sorted /wp-admin/admin.php?page=reviews-sorted | 919 | 2.14 | 23.27 | 24.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 3 tables
- wp_reviews_email
- wp_reviews
- wp_email_schedule
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/reviews-sorted/templates/admin/review-edit.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/reviews-sorted/templates/admin/reviews-sorted.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/reviews-sorted/templates/admin/premium-version.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reviews-sorted/templates/admin/email-templates.php:41
- > PHP Fatal error
Uncaught Error: Class 'ReviewsSortedCommon' not found in wp-content/plugins/reviews-sorted/templates/admin/form-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/reviews-sorted/templates/reviews-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/reviews-sorted/templates/admin/testimonial-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reviews-sorted/templates/admin/business-details.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/reviews-sorted/templates/admin/reviews-list.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: star rating, rating, user rating, schema, product review...
reviews-sorted/reviews-sorted.php 92% from 13 tests
"Reviews Sorted" version 2.3.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 292 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,555 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 564 | 209 | 2,937 |
CSS | 2 | 47 | 59 | 466 |
SVG | 1 | 0 | 0 | 88 |
JavaScript | 2 | 10 | 15 | 64 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 18 | 45.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/rs-icon-5-1.png | 0.53KB | 0.54KB | 0.00% |
assets/images/stars-inactive_2.png | 3.06KB | 1.50KB | ▼ 50.88% |
assets/images/stars-inactive.png | 2.56KB | 1.51KB | ▼ 41.26% |
assets/images/rs-icon-2-1.png | 0.39KB | 0.39KB | 0.00% |
assets/logo.png | 10.69KB | 4.61KB | ▼ 56.87% |