Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.38MB] [CPU: ▼202.35ms] Passed 4 tests
Analyzing server-side resources used by Predict When
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.29 | 33.05 ▼1.31 |
Dashboard /wp-admin | 3.27 ▲0.22 | 29.93 ▼17.52 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 21.71 ▼25.43 |
Add New Post /wp-admin/post-new.php | 3.27 ▼2.16 | 23.27 ▼750.89 |
Media Library /wp-admin/upload.php | 3.27 ▲0.27 | 23.09 ▼15.57 |
Add New Question /wp-admin/admin.php?page=predictwhen_add_question | 3.27 | 24.08 |
All Questions /wp-admin/admin.php?page=predictwhen_menu | 3.27 | 25.31 |
Predict When /wp-admin/options-general.php?page=predictwhen_options | 3.27 | 24.14 |
Predictions /wp-admin/admin.php?page=predictwhen_prediction | 3.27 | 24.98 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: 2 new tables, 17 new options
New tables |
---|
wp_predictwhen_question |
wp_predictwhen_prediction |
New WordPress options |
---|
predictwhen_embed |
predictwhen_db_version |
predictwhen_reject_body |
predictwhen_font_chart |
predictwhen_reject_subject |
predictwhen_color_predicted_date |
predictwhen_hide_grid_chart |
predictwhen_color_predicted_user |
predictwhen_color_chart_background |
predictwhen_approve_subject |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Predict When
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,752 ▲156 | 16.45 ▲0.82 | 8.69 ▼0.31 | 46.74 ▼0.58 |
Dashboard /wp-admin | 3,034 ▲97 | 6.95 ▲0.99 | 142.00 ▼20.97 | 130.42 ▲18.84 |
Posts /wp-admin/edit.php | 2,826 ▲87 | 2.99 ▲0.28 | 79.53 ▲14.85 | 107.71 ▲21.15 |
Add New Post /wp-admin/post-new.php | 1,655 ▼28 | 18.33 ▼0.43 | 370.30 ▼34.94 | 122.70 ▲20.02 |
Media Library /wp-admin/upload.php | 1,829 ▲22 | 5.65 ▲0.64 | 155.39 ▼0.54 | 127.43 ▲15.31 |
Add New Question /wp-admin/admin.php?page=predictwhen_add_question | 2,170 | 3.12 | 90.62 | 113.24 |
All Questions /wp-admin/admin.php?page=predictwhen_menu | 1,717 | 2.90 | 58.20 | 82.55 |
Predict When /wp-admin/options-general.php?page=predictwhen_options | 1,092 | 2.17 | 43.13 | 44.96 |
Predictions /wp-admin/admin.php?page=predictwhen_prediction | 1,441 | 2.86 | 58.91 | 97.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5211
add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- Zombie tables were found after uninstall: 2 tables
- wp_predictwhen_prediction
- wp_predictwhen_question
- Zombie WordPress options were found after uninstall: 17 options
- predictwhen_hide_grid_chart
- predictwhen_approve_body
- predictwhen_color_predicted_date
- predictwhen_reject_body
- predictwhen_color_chart_bars
- predictwhen_color_chart_background
- predictwhen_font_color_chart
- predictwhen_font_chart
- predictwhen_sharing
- recovery_mode_email_last_sent
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=predictwhen_prediction
- > User deprecated in wp-includes/functions.php+5211
add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=predictwhen_menu
- > Notice in wp-content/plugins/predict-when/admin/questions.php+510
Undefined index: question_filter
- > GET request to /wp-admin/options-general.php?page=predictwhen_options
- > Error in wp-content/plugins/predict-when/predict-when.php+804
Uncaught Error: Call to undefined function split() in wp-content/plugins/predict-when/predict-when.php:804
Stack trace:
#0 wp-content/plugins/predict-when/admin/admin.php(755): PredictWhen->load_google_chart_api()
#1 wp-includes/class-wp-hook.php(303): PredictWhenAdmin->options()
#2 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(470): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PredictWhenAdmin' not found in wp-content/plugins/predict-when/admin/predictions.php:12
- > PHP Fatal error
Uncaught Error: Class 'PredictWhenAdmin' not found in wp-content/plugins/predict-when/admin/questions.php:12
- > 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 87% 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 require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Open question prompting for a predicted date), #2 (Closed question with the event date shown), #3 (List of questions in the admin menu), #4 (Adding a new question), #5 (User facing form to submit a suggested question), #6 (Scoring), #7 (Settings)
predict-when/predict-when.php 85% from 13 tests
"Predict When" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 190 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin5,599 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 1,109 | 1,035 | 3,801 |
JavaScript | 5 | 182 | 263 | 1,290 |
CSS | 2 | 75 | 81 | 508 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 93.17 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 258.00 |
Average method complexity | 5.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.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 | 118 | |
▷ Static methods | 1 | 0.85% |
▷ Public methods | 104 | 88.14% |
▷ Protected methods | 1 | 0.85% |
▷ Private methods | 13 | 11.02% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
24 compressed PNG files occupy 0.32MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon32-grey.png | 0.91KB | 1.89KB | 0.00% |
screenshot-7.png | 71.47KB | 31.27KB | ▼ 56.24% |
images/icon-hover.png | 0.43KB | 0.54KB | 0.00% |
images/icon-grey.png | 0.31KB | 0.54KB | 0.00% |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |