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
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/fifthsegment-whitelist/includes/class-wordpress-plugin-template.php+883
Undefined variable: charset_collate
Server metrics [RAM: ▲0.32MB] [CPU: ▼145.12ms] Passed 4 tests
Analyzing server-side resources used by Whitelist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.11 ▲0.39 | 36.29 ▲10.90 |
Dashboard /wp-admin | 3.41 ▲0.35 | 46.83 ▼2.98 |
Posts /wp-admin/edit.php | 3.46 ▲0.35 | 45.80 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.70 ▲0.27 | 89.15 ▼577.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.29 | 33.51 ▲2.06 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: 2 new tables, 3 new options
New tables |
---|
wp_authusers |
wp_authusers_pending |
New WordPress options |
---|
wpt_generate_sec |
wpt_text_field_roadblockmessage |
wordpress_plugin_template_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Whitelist
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲70 | 16.15 ▲0.63 | 11.67 ▲0.51 | 46.40 ▼1.01 |
Dashboard /wp-admin | 2,939 ▲8 | 5.91 ▼0.23 | 147.17 ▼30.52 | 111.89 ▲3.33 |
Posts /wp-admin/edit.php | 2,715 ▼24 | 2.70 ▼0.02 | 80.16 ▲14.88 | 85.85 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,601 ▼82 | 21.34 ▲2.56 | 287.87 ▼161.63 | 105.03 ▼5.91 |
Media Library /wp-admin/upload.php | 1,776 ▼31 | 4.98 ▼0.02 | 167.90 ▲3.95 | 118.47 ▲1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_authusers
- wp_authusers_pending
- The uninstall procedure has failed, leaving 3 options in the database
- wpt_generate_sec
- wpt_text_field_roadblockmessage
- wordpress_plugin_template_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: only, wordpress, roadblock, email whitelist, plugin...
fifthsegment-whitelist/wordpress-plugin-template.php 92% from 13 tests
The main PHP script in "Whitelist" version 3.5 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("fifthsegment-whitelist.php" instead of "wordpress-plugin-template.php")
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
Everything looks great! No dangerous files found in this plugin1,950 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 470 | 616 | 1,652 |
HTML | 1 | 22 | 10 | 153 |
JavaScript | 6 | 20 | 10 | 84 |
CSS | 3 | 6 | 0 | 61 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 32.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 2 | 2.78% |
▷ Public methods | 69 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.17% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
8 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/lib/simple-php-captcha/backgrounds/polyester-lite.png | 1.03KB | 0.16KB | ▼ 84.86% |
includes/lib/simple-php-captcha/backgrounds/white-wave.png | 1.25KB | 0.42KB | ▼ 66.59% |
includes/lib/simple-php-captcha/backgrounds/stitched-wool.png | 1.05KB | 0.21KB | ▼ 80.21% |
includes/lib/simple-php-captcha/backgrounds/grey-sandbag.png | 5.89KB | 5.09KB | ▼ 13.53% |
includes/lib/simple-php-captcha/backgrounds/white-carbon.png | 1.04KB | 0.18KB | ▼ 83.18% |