Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲1.69ms] Passed 4 tests
A check of server-side resources used by LongShot AI - Long Form Writing Assistant
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 41.11 ▲2.59 |
Dashboard /wp-admin | 3.54 ▲0.24 | 51.48 ▲2.59 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 47.35 ▲0.60 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 694.02 ▲607.01 |
Media Library /wp-admin/upload.php | 3.47 ▲0.23 | 37.15 ▲0.99 |
Dashboard /wp-admin/admin.php?page=longshot-ai | 3.49 | 33.49 |
Server storage [IO: ▲2.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 15 new options
New WordPress options |
---|
can_compress_scripts |
longshot_ai_api_key |
longshot_ai_persistent_message |
longshot_ai_feedback_message |
widget_recent-comments |
longshot_ai_unique_id |
longshot_ai_feedback_dismissed |
db_upgraded |
longshot_ai_feedback_given |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for LongShot AI - Long Form Writing Assistant
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲128 | 14.36 ▼0.30 | 1.68 ▼0.08 | 45.81 ▲1.13 |
Dashboard /wp-admin | 2,298 ▲118 | 5.64 ▼0.01 | 97.42 ▲4.95 | 45.98 ▲2.96 |
Posts /wp-admin/edit.php | 2,202 ▲102 | 2.02 ▲0.02 | 36.78 ▲0.47 | 37.26 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 23.51 ▲5.41 | 695.39 ▲41.60 | 47.09 ▼24.00 |
Media Library /wp-admin/upload.php | 1,500 ▲100 | 4.23 ▼0.08 | 104.37 ▲11.01 | 45.44 ▲3.52 |
Dashboard /wp-admin/admin.php?page=longshot-ai | 1,040 | 2.01 | 22.08 | 33.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- longshot_ai_feedback_message
- longshot_ai_feedback_given
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- longshot_ai_feedback_dismissed
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/longshot-ai-long-form-writing-assistant/longshot-ai.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/longshot-ai-long-form-writing-assistant/rest.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/longshot-ai-long-form-writing-assistant/templates/admin-page.php:48
- > PHP Warning
Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/longshot-ai-long-form-writing-assistant/constants.php on line 25
- > PHP Warning
Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/longshot-ai-long-form-writing-assistant/constants.php on line 25
- > PHP Warning
A non-numeric value encountered in wp-content/plugins/longshot-ai-long-form-writing-assistant/constants.php on line 25
- > PHP Warning
A non-numeric value encountered in wp-content/plugins/longshot-ai-long-form-writing-assistant/constants.php on line 25
- > PHP Warning
Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/longshot-ai-long-form-writing-assistant/constants.php on line 25
- > PHP Warning
A non-numeric value encountered in wp-content/plugins/longshot-ai-long-form-writing-assistant/constants.php on line 25
- > PHP Warning
A non-numeric value encountered in wp-content/plugins/longshot-ai-long-form-writing-assistant/constants.php on line 25
- > PHP Warning
Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/longshot-ai-long-form-writing-assistant/constants.php on line 25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in longshot-ai-long-form-writing-assistant/assets to your readme.txt
- Contributors: Plugin contributors not specified
longshot-ai-long-form-writing-assistant/longshot-ai.php 85% from 13 tests
"LongShot AI - Long Form Writing Assistant" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("longshot-ai-long-form-writing-assistant.php" instead of "longshot-ai.php")
- Description: The description should be shorter than 140 characters (currently 249 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,495 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 200 | 142 | 1,255 |
CSS | 4 | 34 | 4 | 189 |
SVG | 1 | 0 | 0 | 50 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.17 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 6 | 100.00% |
Methods | 65 | |
▷ Static methods | 9 | 13.85% |
▷ Public methods | 59 | 90.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 9.23% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.09MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/longshot.png | 37.41KB | 33.84KB | ▼ 9.53% |
assets/longshot-mini.png | 51.97KB | 48.34KB | ▼ 7.00% |