Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.93ms] Passed 4 tests
This is a short check of server-side resources used by Is user premium
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.26 ▼0.49 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.29 ▼3.33 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.38 ▼3.45 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 93.11 ▼0.43 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.19 ▲4.59 |
IUP settings /wp-admin/options-general.php?page=iup-settings-page | 3.25 | 30.21 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
iup_meta |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Is user premium
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.71 ▼0.72 | 1.63 ▲0.02 | 39.47 ▼4.29 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.07 | 108.71 ▲1.90 | 35.65 ▼7.49 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.00 ▼0.01 | 40.41 ▲5.57 | 33.98 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.01 ▲5.52 | 639.03 ▼28.28 | 46.43 ▼14.70 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▲0.02 | 93.98 ▼4.47 | 40.58 ▼0.97 |
IUP settings /wp-admin/options-general.php?page=iup-settings-page | 977 | 2.03 | 28.35 | 35.50 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- iup_meta
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/is-user-premium/is-user-premium.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Settings page (first part)), #2 (Settings page (second part)), #3 (The button displayed to a logged-in user)
is-user-premium/is-user-premium.php 92% from 13 tests
"Is user premium" version 0.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 173 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin418 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 48 | 83 | 418 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 3 | 60.00% |
▷ Public methods | 2 | 40.00% |
▷ Protected methods | 3 | 60.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
3 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 11.82KB | 5.14KB | ▼ 56.49% |
screenshot-2.png | 57.80KB | 21.52KB | ▼ 62.76% |
screenshot-1.png | 88.86KB | 31.17KB | ▼ 64.92% |