Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/widgetpack-review-system/api/wprev-api.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; WPacReviewAPI has a deprecated constructor
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.89ms] Passed 4 tests
Analyzing server-side resources used by WidgetPack Review System
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.17 ▼1.06 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.98 ▼3.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.50 ▲5.09 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.63 ▼20.64 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 40.12 ▲1.61 |
WidgetPack /wp-admin/edit-comments.php?page=wprev | 3.19 | 30.48 |
All Comments /wp-admin/edit-comments.php | 3.26 | 33.57 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wprev_version |
widget_theysaidso_widget |
wprev_active |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WidgetPack Review System
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.67 ▼0.98 | 1.58 ▼0.10 | 41.40 ▲1.79 |
Dashboard /wp-admin | 2,220 ▲35 | 5.79 ▼0.02 | 95.27 ▼9.63 | 38.36 ▼1.27 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.01 ▲0.01 | 35.21 ▲0.29 | 31.57 ▼9.37 |
Add New Post /wp-admin/post-new.php | 1,549 ▲13 | 23.04 ▼0.11 | 649.26 ▼31.70 | 51.11 ▲2.05 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.21 ▲0.02 | 111.61 ▼9.67 | 46.15 ▼0.74 |
WidgetPack /wp-admin/edit-comments.php?page=wprev | 1,222 | 1.96 | 26.57 | 96.25 |
All Comments /wp-admin/edit-comments.php | 1,812 | 2.27 | 34.16 | 29.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- wprev_version
- wprev_active
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/edit-comments.php?page=wprev
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
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
Please take a closer look at the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require(ABSPATHwp-includes/version.php): failed to open stream: No such file or directory in wp-content/plugins/widgetpack-review-system/wprev-manage.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/widgetpack-review-system/wprev-comments.php:2
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
- > PHP Fatal error
require(): Failed opening required 'ABSPATHwp-includes/version.php' (include_path='.:/usr/share/php') in wp-content/plugins/widgetpack-review-system/wprev-manage.php on line 8
- > PHP Warning
require_once(ABSPATHWPINC/http.php): failed to open stream: No such file or directory in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/http.php' (include_path='.:/usr/share/php') in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgetpack-review-system/wprev-manage.php on line 8
- > PHP Warning
require_once(ABSPATHWPINC/http.php): failed to open stream: No such file or directory in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgetpack-review-system/api/wprev-wp-api.php on line 2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit-comments.php?page=wprev
- > Javascript (severe) in unknown
/wp-content/plugins/widgetpack-review-system/static/js/bootstrap.min.js?ver=6.3.1 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
- > GET request to /wp-admin/edit-comments.php?page=wprev
- > Network (severe)
https://embed.widgetpack.com/widget.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
widgetpack-review-system/wprev.php 85% from 13 tests
Analyzing the main PHP file in "WidgetPack Review System" version 1.2
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("widgetpack-review-system.php" instead of "wprev.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,464 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 200 | 177 | 1,871 |
CSS | 3 | 84 | 21 | 456 |
JavaScript | 2 | 5 | 5 | 137 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 33.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 7.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 48 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 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
PNG images were not found in this plugin