Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼4.39ms] Passed 4 tests
An overview of server-side resources used by Privilege Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 43.22 ▲2.56 |
Dashboard /wp-admin | 3.78 ▲0.44 | 53.54 ▼15.47 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 56.03 ▲6.71 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 92.20 ▼4.79 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 40.13 ▲0.16 |
Install Plugins /wp-admin/plugins.php?page=fuzzguard-plugin-manager | 3.71 | 35.93 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Privilege Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.28 ▼0.32 | 1.87 ▼0.60 | 43.07 ▲1.68 |
Dashboard /wp-admin | 2,225 ▲48 | 5.64 ▲0.06 | 96.41 ▲2.28 | 41.99 ▼0.49 |
Posts /wp-admin/edit.php | 2,142 ▲39 | 2.03 ▲0.03 | 40.44 ▲4.39 | 40.13 ▲5.09 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.63 ▼0.16 | 645.73 ▼49.72 | 58.49 ▲3.72 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.23 ▲0.04 | 101.27 ▼1.59 | 49.45 ▲1.34 |
Install Plugins /wp-admin/plugins.php?page=fuzzguard-plugin-manager | 974 | 2.05 | 25.17 | 30.73 |
Uninstaller [IO: ▲0.15MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Compile error in wp-content/plugins/privilege-widget/privWidget.php+42
Cannot declare class privWidget, because the name is already in use
- Incomplete uninstall procedure, leaving 10 files (0.15MB) in the plugin directory
- (new file) lang/privilege-widget-sr_RS.mo
- (new file) lang/privilege-widget-de_DE.mo
- (new file) lang/privilege-widget.pot
- (new file) privWidget.php
- (new file) lang/privilege-widget-zh_CN.mo
- (new file) class-tgm-plugin-activation.php
- (new file) readme.txt
- (new file) lang/privilege-widget-es_ES.mo
- (new file) uninstall.php
- (new file) lang/privilege-widget-fr_FR.mo
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/privilege-widget/class-tgm-plugin-activation.php:2109
- > 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 issues were found
Optimizations
Plugin configuration 93% 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:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
privilege-widget/privWidget.php 92% from 13 tests
Analyzing the main PHP file in "Privilege Widget" version 1.7.3
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("privilege-widget.php" instead of "privWidget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,974 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 553 | 1,751 | 1,974 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 46.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 5 | 4.72% |
▷ Public methods | 83 | 78.30% |
▷ Protected methods | 23 | 21.70% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin