Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.76ms] Passed 4 tests
An overview of server-side resources used by Gift on User Registration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.05 ▼2.77 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.43 ▼4.62 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.72 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 79.08 ▼19.26 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.90 ▼0.14 |
Gift on Registration /wp-admin/options-general.php?page=gour_page | 3.24 | 30.93 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gift on User Registration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.29 ▼1.37 | 6.50 ▲4.46 | 41.97 ▲3.34 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▼0.03 | 99.79 ▼2.99 | 39.16 ▼2.44 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.00 | 39.33 ▲2.59 | 34.17 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.35 ▲0.25 | 655.76 ▼0.90 | 55.55 ▲1.66 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.22 ▲0.00 | 96.53 ▼19.34 | 40.59 ▼8.46 |
Gift on Registration /wp-admin/options-general.php?page=gour_page | 789 | 2.06 | 23.42 | 27.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 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 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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gift-on-registration/gift-on-registration.php:64
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== gift-on-registration ===
) - Donate link: Please fix this invalid URI: ""
gift-on-registration/gift-on-registration.php Passed 13 tests
The main file in "Gift on User Registration" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Sends a gift (file) to every newly registered user
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected273 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 75 | 52 | 181 |
PO File | 2 | 222 | 480 | 92 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gift.png | 25.01KB | 8.44KB | ▼ 66.26% |