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
- The plugin did not install without errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.99ms] Passed 4 tests
Analyzing server-side resources used by WP Keys Giveaway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.09 ▼1.71 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.36 ▼2.28 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 45.37 ▼0.69 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 85.72 ▼11.28 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.15 ▲2.76 |
Add Key Giveaway /wp-admin/post-new.php?post_type=sh9_betakey | 3.36 | 47.40 |
WP Keys Giveaway /wp-admin/edit.php?post_type=sh9_betakey | 3.37 | 39.20 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_sh9_betakeys |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Keys Giveaway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲214 | 13.79 ▼0.50 | 9.47 ▲7.80 | 40.34 ▼0.45 |
Dashboard /wp-admin | 2,241 ▲50 | 5.84 ▲0.96 | 98.90 ▼7.77 | 104.34 ▲64.43 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.03 ▲0.04 | 37.08 ▲0.02 | 30.92 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,550 ▲30 | 23.15 ▲0.14 | 658.81 ▲25.77 | 60.39 ▼8.27 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.14 ▲0.04 | 101.04 ▼1.22 | 73.50 ▲30.22 |
Add Key Giveaway /wp-admin/post-new.php?post_type=sh9_betakey | 1,493 | 2.52 | 51.90 | 100.98 |
Donate /wp-admin/key_giveaway.php | 26 | 0.44 | 0.08 | 14.35 |
WP Keys Giveaway /wp-admin/edit.php?post_type=sh9_betakey | 1,091 | 1.95 | 34.97 | 31.66 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wp-keys-giveaway/uninstall.php+11
Constant SH9BKTABLE already defined
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-keys-giveaway/key_giveaway.php:13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-keys-giveaway/key_giveaway.php on line 13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/key_giveaway.php
- > Network (severe)
wp-admin/key_giveaway.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: beta keys giveaway, giveaway, wp keys giveaway, keys giveaway
wp-keys-giveaway/key_giveaway.php 92% from 13 tests
The main file in "WP Keys Giveaway" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-keys-giveaway.php" instead of "key_giveaway.php")
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 detected329 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 16 | 276 |
JavaScript | 2 | 3 | 1 | 42 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/get-your-key.png | 8.13KB | 3.98KB | ▼ 51.07% |
images/delete.png | 0.50KB | 0.53KB | 0.00% |
images/icon.png | 0.43KB | 0.33KB | ▼ 21.87% |