Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ciusan-restrict-widget/ciusan-restrict-widget.php+153
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼49.47ms] Passed 4 tests
Server-side resources used by Ciusan Restrict Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.66 ▼36.21 |
Dashboard /wp-admin | 2.10 ▼1.21 | 5.97 ▼40.71 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.90 ▼39.62 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.72 ▼81.35 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.08 ▼32.25 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_ciusan_restrict_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Ciusan Restrict Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.15 | 1.71 ▼0.29 | 39.78 ▼2.97 |
Dashboard /wp-admin | 2,203 ▲18 | 5.83 ▲0.92 | 94.87 ▼14.77 | 39.17 ▼2.88 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.04 | 39.11 ▲1.13 | 35.19 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.18 ▲5.53 | 642.69 ▼49.02 | 54.19 ▼8.65 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.23 ▲0.01 | 97.18 ▼6.27 | 41.47 ▼2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/ciusan-restrict-widget/ciusan-restrict-widget.php+153
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_ciusan_restrict_widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ciusan-restrict-widget/ciusan-restrict-widget.php:60
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Widget sidebar option.)
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
ciusan-restrict-widget/ciusan-restrict-widget.php Passed 13 tests
The main PHP script in "Ciusan Restrict Widget" version 1.0 is automatically included on every request by WordPress
82 characters long description:
Ciusan Restrict Widget can show widget for register user only or for guest only...
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin110 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 22 | 110 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 27.50KB | 8.20KB | ▼ 70.20% |