Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲2.00MB] [CPU: ▲9.30ms] Passed 4 tests
A check of server-side resources used by Ultimate Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.41 ▲1.95 | 48.20 ▲3.88 |
Dashboard /wp-admin | 5.32 ▲2.02 | 56.34 ▲7.29 |
Posts /wp-admin/edit.php | 5.35 ▲2.00 | 68.19 ▲21.64 |
Add New Post /wp-admin/post-new.php | 8.13 ▲2.24 | 102.38 ▲11.50 |
Media Library /wp-admin/upload.php | 5.25 ▲2.03 | 51.02 ▲14.51 |
Review Categories /wp-admin/edit-tags.php?taxonomy=urp-review-category&post_type=urp_review | 5.22 | 46.09 |
Import /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-import | 5.18 | 43.00 |
Export /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-export | 5.18 | 45.27 |
Ultimate Reviews - Welcome! /wp-admin/index.php?page=ewd-urp-getting-started | 5.18 | 43.19 |
Settings /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-settings | 5.29 | 54.80 |
All Reviews /wp-admin/edit.php?post_type=urp_review | 5.27 | 51.74 |
Add New /wp-admin/post-new.php?post_type=urp_review | 8.15 | 98.82 |
Dashboard /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-dashboard | 5.20 | 52.99 |
About Us /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-about-us | 5.19 | 45.84 |
Server storage [IO: ▲7.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 589 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_theysaidso_widget |
ewd-urp-installation-time |
widget_ewd_urp_selected_reviews_widget |
db_upgraded |
widget_ewd_urp_popular_reviews_widget |
widget_recent-posts |
ewd-urp-permission-level |
widget_recent-comments |
theysaidso_admin_options |
widget_ewd_urp_reviews_slider_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Ultimate Reviews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲107 | 14.69 ▼0.08 | 1.90 ▼0.17 | 40.02 ▼4.75 |
Dashboard /wp-admin | 2,254 ▲80 | 5.66 ▲0.08 | 96.28 ▼4.44 | 42.59 ▼1.12 |
Posts /wp-admin/edit.php | 2,159 ▲56 | 2.01 ▲0.06 | 39.71 ▲3.74 | 36.91 ▲5.37 |
Add New Post /wp-admin/post-new.php | 6,445 ▲4,909 | 28.06 ▲4.80 | 811.31 ▲165.96 | 35.74 ▼14.72 |
Media Library /wp-admin/upload.php | 1,459 ▲62 | 4.38 ▲0.15 | 97.24 ▼2.53 | 44.30 ▲0.17 |
Review Categories /wp-admin/edit-tags.php?taxonomy=urp-review-category&post_type=urp_review | 1,386 | 1.91 | 37.80 | 33.46 |
Import /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-import | 955 | 2.20 | 28.56 | 43.22 |
Export /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-export | 934 | 2.21 | 30.46 | 34.84 |
Ultimate Reviews - Welcome! /wp-admin/index.php?page=ewd-urp-getting-started | 1,206 | 2.24 | 30.73 | 33.09 |
Settings /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-settings | 1,973 | 3.64 | 60.80 | 42.06 |
All Reviews /wp-admin/edit.php?post_type=urp_review | 1,395 | 2.15 | 38.55 | 38.02 |
Add New /wp-admin/post-new.php?post_type=urp_review | 6,437 | 20.36 | 940.61 | 43.80 |
Dashboard /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-dashboard | 1,275 | 2.21 | 32.07 | 59.52 |
About Us /wp-admin/edit.php?post_type=urp_review&page=ewd-urp-about-us | 1,386 | 2.21 | 31.68 | 31.27 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 12 options in the database
- widget_ewd_urp_popular_reviews_widget
- widget_recent-comments
- widget_ewd_urp_selected_reviews_widget
- ewd-urp-permission-level
- ewd-urp-installation-time
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_ewd_urp_recent_reviews_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ultimate-reviews/ewd-urp-templates/summary-statistics-clear-score-filter.php
- > /wp-content/plugins/ultimate-reviews/ewd-urp-templates/submit-review-recaptcha.php
- > /wp-content/plugins/ultimate-reviews/ewd-urp-templates/reviews-review-container-close.php
- > /wp-content/plugins/ultimate-reviews/ewd-urp-templates/reviews-review-container-open.php
- 197× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/ultimate-reviews/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric.php:21
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Style\\Supervisor' not found in wp-content/plugins/ultimate-reviews/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Font.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/ultimate-reviews/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheInterface' not found in wp-content/plugins/ultimate-reviews/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory.php:13
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\BaseWriter' not found in wp-content/plugins/ultimate-reviews/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimate-reviews/ewd-urp-templates/summary-statistics.php:1
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\Reader\\IReadFilter' not found in wp-content/plugins/ultimate-reviews/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/DefaultReadFilter.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-reviews/ewd-urp-templates/submit-review-field-review-image.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-reviews/ewd-urp-templates/submit-review-submitted-review-message.php:2
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/ultimate-reviews/lib/simple-admin-pages/classes/AdminPageSetting.InfiniteTable.class.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (27 tag instead of maximum 10)
ultimate-reviews/ultimate-reviews.php 85% from 13 tests
The principal PHP file in "Ultimate Reviews" v. 3.2.8 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "7.1")
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin76,752 lines of code in 473 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 355 | 15,231 | 31,551 | 64,416 |
CSS | 20 | 323 | 240 | 4,110 |
JavaScript | 73 | 758 | 368 | 3,450 |
PO File | 5 | 1,113 | 1,259 | 2,546 |
Markdown | 10 | 411 | 0 | 1,855 |
JSON | 3 | 0 | 0 | 245 |
YAML | 5 | 19 | 12 | 84 |
Bourne Again Shell | 1 | 6 | 3 | 24 |
XML | 1 | 0 | 0 | 22 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,016)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 41.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,016.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 40 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 263 | |
▷ Abstract classes | 14 | 5.32% |
▷ Concrete classes | 249 | 94.68% |
▷ Final classes | 0 | 0.00% |
Methods | 3,138 | |
▷ Static methods | 608 | 19.38% |
▷ Public methods | 2,530 | 80.62% |
▷ Protected methods | 75 | 2.39% |
▷ Private methods | 533 | 16.99% |
Functions | 27 | |
▷ Named functions | 22 | 81.48% |
▷ Anonymous functions | 5 | 18.52% |
Constants | 773 | |
▷ Global constants | 8 | 1.03% |
▷ Class constants | 765 | 98.97% |
▷ Public constants | 765 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
65 PNG files occupy 2.35MB with 1.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/urp-buttonsicons-03.png | 5.51KB | 2.74KB | ▼ 50.25% |
assets/img/support_icons_urp-01.png | 1.00KB | 0.47KB | ▼ 53.02% |
assets/img/UPCP_Icons-07-300x300.png | 37.38KB | 16.24KB | ▼ 56.55% |
assets/img/options-asset-lock.png | 1.05KB | 0.50KB | ▼ 52.28% |
assets/img/ewd-support-icon-forum.png | 5.77KB | 2.17KB | ▼ 62.41% |