Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/reviewpack-reviews/src/Admin/Settings.php+224
Undefined index: integrations
Server metrics [RAM: ▼1.70MB] [CPU: ▼52.54ms] Passed 4 tests
A check of server-side resources used by Collect Company Reviews - ReviewPack
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 36.55 ▼6.24 |
Dashboard /wp-admin | 2.26 ▼1.09 | 7.51 ▼53.24 |
Posts /wp-admin/edit.php | 2.26 ▼1.10 | 8.13 ▼46.26 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.63 | 7.90 ▼85.51 |
Media Library /wp-admin/upload.php | 2.26 ▼0.97 | 7.75 ▼25.16 |
ReviewPack /wp-admin/options-general.php?page=reviewpack-settings | 2.26 | 9.44 |
ReviewPack /wp-admin/admin.php?page=reviewpack | 2.26 | 7.34 |
Widgets /wp-admin/admin.php?page=reviewpack-widgets | 2.26 | 8.77 |
Invite mail /wp-admin/admin.php?page=reviewpack-invites | 2.26 | 7.84 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Collect Company Reviews - ReviewPack: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲102 | 14.40 ▼0.00 | 2.11 ▲0.48 | 37.94 ▼8.86 |
Dashboard /wp-admin | 2,264 ▲87 | 5.63 ▼0.02 | 88.76 ▼12.02 | 41.93 ▼1.83 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.03 ▲0.09 | 36.62 ▲2.13 | 32.87 ▼4.60 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.23 ▲0.35 | 670.53 ▲44.69 | 57.91 ▲2.27 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.33 ▲0.10 | 96.93 ▼2.23 | 46.00 ▼0.70 |
ReviewPack /wp-admin/options-general.php?page=reviewpack-settings | 943 | 1.99 | 26.82 | 41.51 |
ReviewPack /wp-admin/admin.php?page=reviewpack | 905 | 2.15 | 23.06 | 30.75 |
Widgets /wp-admin/admin.php?page=reviewpack-widgets | 900 | 2.00 | 22.15 | 29.12 |
Invite mail /wp-admin/admin.php?page=reviewpack-invites | 903 | 2.18 | 22.38 | 30.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/reviewpack-reviews/src/Admin/Settings.php+224
Undefined index: integrations
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=reviewpack-invites
- > Notice in wp-content/plugins/reviewpack-reviews/src/Admin/Settings.php+224
Undefined index: integrations
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
The following issues need your attention
- 32× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/reviewpack-reviews/views/admin_invites.php:4
- > PHP Fatal error
Uncaught Error: Class 'ReviewPack\\Models\\AbstractResource' not found in wp-content/plugins/reviewpack-reviews/src/Models/InviteTemplate.php:9
- > PHP Notice
Undefined variable: rating in wp-content/plugins/reviewpack-reviews/views/elements/rating.php on line 9
- > PHP Notice
Undefined variable: rating in wp-content/plugins/reviewpack-reviews/views/elements/rating.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function http_send_status() in wp-content/plugins/reviewpack-reviews/reviewpack.php:4
- > PHP Notice
Undefined variable: rating in wp-content/plugins/reviewpack-reviews/views/elements/rating.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'ReviewPack\\Models\\AbstractResource' not found in wp-content/plugins/reviewpack-reviews/src/Models/Company.php:9
- > PHP Fatal error
Uncaught Error: Class 'ReviewPack\\Models\\AbstractResource' not found in wp-content/plugins/reviewpack-reviews/src/Models/CompanyScore.php:9
- > PHP Notice
Undefined variable: rating in wp-content/plugins/reviewpack-reviews/views/elements/rating.php on line 17
- > PHP Notice
Undefined variable: rating in wp-content/plugins/reviewpack-reviews/views/elements/rating.php on line 15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=reviewpack-invites
- > Network (severe)
https://sitepack.nl/js/widget.min.js - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #3 (An easy overview in a custom dashboard), #4 (Manage the invite mail)
reviewpack-reviews/reviewpack.php 85% from 13 tests
The main file in "Collect Company Reviews - ReviewPack" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("reviewpack-reviews.php" instead of "reviewpack.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected1,826 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 339 | 520 | 1,600 |
CSS | 1 | 34 | 0 | 198 |
Markdown | 1 | 6 | 0 | 18 |
JSON | 2 | 0 | 0 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 3 | 3.95% |
▷ Public methods | 64 | 84.21% |
▷ Protected methods | 1 | 1.32% |
▷ Private methods | 11 | 14.47% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 14 | |
▷ Global constants | 2 | 14.29% |
▷ Class constants | 12 | 85.71% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon_160.png | 6.54KB | 1.32KB | ▼ 79.80% |
images/icon_32.png | 1.05KB | 0.69KB | ▼ 34.63% |
images/rating_30_5.png | 7.19KB | 1.42KB | ▼ 80.23% |
images/icon_64.png | 1.48KB | 1.01KB | ▼ 31.81% |
images/rating_40_5.png | 7.11KB | 1.30KB | ▼ 81.74% |