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
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/conversation-starter/PluginCore/core.php+36
Undefined index: id
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.60ms] Passed 4 tests
An overview of server-side resources used by Conversation Starter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 42.98 ▲0.07 |
Dashboard /wp-admin | 3.44 ▲0.13 | 52.69 ▲0.89 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.93 ▲3.89 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 95.15 ▼10.00 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.10 ▼1.37 |
Conversation Starter Changelog /wp-admin/admin.php?page=conversation-starter-changelog | 3.33 | 34.09 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 16 new options
New WordPress options |
---|
conversation-starter_div_padding |
theysaidso_admin_options |
conversation-starter_div_margin |
conversation-starter_background_color |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
conversation-starter_show_border |
conversation-starter_font_weight |
conversation-starter_border_color |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Conversation Starter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.80 ▼0.58 | 8.79 ▲6.73 | 43.56 ▼2.48 |
Dashboard /wp-admin | 2,199 ▲19 | 5.51 ▼0.18 | 84.63 ▼6.44 | 38.05 ▼10.60 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.04 ▼0.02 | 37.21 ▼3.29 | 34.00 ▼2.13 |
Add New Post /wp-admin/post-new.php | 6,249 ▲4,720 | 18.77 ▲0.99 | 927.42 ▲271.21 | 66.44 ▲8.15 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.23 ▼0.01 | 109.87 ▲3.77 | 49.07 ▲2.36 |
Conversations Options /wp-admin/core.php | 26 | 0.44 | 0.07 | 16.62 |
Conversation Starter Changelog /wp-admin/admin.php?page=conversation-starter-changelog | 1,078 | 2.01 | 24.56 | 29.03 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 16 options in the database
- conversation-starter_div_margin
- widget_recent-comments
- conversation-starter_show_border
- can_compress_scripts
- conversation-starter_font_weight
- widget_recent-posts
- conversation-starter_border_type
- widget_theysaidso_widget
- conversation-starter_default_prompt_text
- conversation-starter_background_color
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/conversation-starter/views/changelog.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/conversation-starter/javascripts/frontend.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function padding() on null in wp-content/plugins/conversation-starter/stylesheets/frontend.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/conversation-starter/lib/changelog.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/conversation-starter/pj-convo.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/conversation-starter/PluginCore/extend.php:29
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/core.php
- > Network (severe)
wp-admin/core.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Custom Meta Box to enter your prompt), #2 (Options to change the appearance of the prompt)
conversation-starter/pj-convo.php 85% from 13 tests
The main PHP file in "Conversation Starter" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("conversation-starter.php" instead of "pj-convo.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin955 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 106 | 95 | 641 |
SVG | 3 | 0 | 1 | 168 |
CSS | 2 | 6 | 0 | 129 |
JavaScript | 1 | 2 | 2 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 7 | 29.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 45.59KB | 16.60KB | ▼ 63.58% |
screenshot-1.png | 9.98KB | 4.96KB | ▼ 50.29% |