Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/response-promotion-redeemer/response-promo-redeemer.php+411
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.53ms] Passed 4 tests
A check of server-side resources used by Response Promo Redeemer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.36 ▼7.34 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.31 ▼5.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.02 ▲1.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.69 ▼20.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.66 ▼1.01 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Response Promo Redeemer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.00 | 1.99 ▲0.31 | 43.96 ▼1.17 |
Dashboard /wp-admin | 2,192 ▲18 | 5.61 ▼0.04 | 83.23 ▼5.25 | 41.97 ▼2.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 37.15 ▲1.28 | 32.44 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.17 ▼0.43 | 688.54 ▲6.41 | 49.56 ▼6.01 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.15 ▲0.05 | 100.35 ▼9.78 | 47.07 ▲0.98 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/response-promotion-redeemer/includes/promo-codes.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/response-promotion-redeemer/includes/scripts.php:12
- > WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE our_code = ''' at line 1 for query SELECT time_entered, partner_code, user_email, user_name FROM WHERE our_code = ''
- > WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE our_code = ''' at line 1 for query SELECT COUNT(*) FROM WHERE our_code = ''
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/response-promotion-redeemer/includes/form-shortcodes.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/response-promotion-redeemer/includes/promo-ctype.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/response-promotion-redeemer/includes/display-functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/response-promotion-redeemer/includes/csv-export.php:7
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/response-promotion-redeemer/response-promo-redeemer.php on line 411
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/response-promotion-redeemer/includes/admin-page.php:61
- > 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/response-promotion-redeemer/includes/csv-export.php on line 6
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Response Promotion Redemption Options page), #2 (Response Promotion Redemption add/edit page), #3 (Response Promotion Redemption Query meta-box options), #4 (Response Promotion Redemption Redirect meta-box options)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== response-promotion-redeemer ===
)
response-promotion-redeemer/response-promo-redeemer.php 85% from 13 tests
Analyzing the main PHP file in "Response Promo Redeemer" version 1.1.0
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 444 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("response-promotion-redeemer.php" instead of "response-promo-redeemer.php")
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 plugin1,194 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 139 | 112 | 756 |
JavaScript | 3 | 66 | 175 | 386 |
CSS | 1 | 0 | 0 | 52 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 11.00 |
▷ Minimum method complexity | 11.00 |
▷ Maximum method complexity | 11.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 | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.81MB with 0.49MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 171.42KB | 63.50KB | ▼ 62.96% |
screenshot-3.png | 85.77KB | 33.58KB | ▼ 60.84% |
screenshot-2.png | 493.00KB | 195.12KB | ▼ 60.42% |
screenshot-4.png | 75.87KB | 30.56KB | ▼ 59.72% |