Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.14ms] Passed 4 tests
Server-side resources used by Frontend Post Submission
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.03 ▼5.71 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.27 ▼2.93 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.70 ▼8.42 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 93.48 ▼3.49 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.19 ▲3.55 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Frontend Post Submission
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲251 | 13.81 ▼0.99 | 9.45 ▲7.60 | 38.73 ▼8.63 |
Dashboard /wp-admin | 2,215 ▲24 | 4.97 ▲0.07 | 100.16 ▼8.16 | 38.29 ▼3.66 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.20 ▲0.19 | 36.95 ▼4.95 | 32.48 ▼10.31 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 23.32 ▲0.09 | 575.51 ▼113.07 | 32.45 ▼39.77 |
Media Library /wp-admin/upload.php | 1,397 ▲15 | 4.19 ▼0.02 | 94.17 ▼8.43 | 41.75 ▼3.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/frontend-post-submission/templates/parts/_feature_image.php
- > /wp-content/plugins/frontend-post-submission/templates/ui-form.php
- > /wp-content/plugins/frontend-post-submission/templates/parts/_post_title.php
- > /wp-content/plugins/frontend-post-submission/templates/parts/_author_name.php
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_feature_image.php on line 3
- > PHP Notice
Undefined variable: pluginHeading in wp-content/plugins/frontend-post-submission/templates/admin-setting.php on line 2
- > PHP Notice
Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_author_name.php on line 3
- > PHP Notice
Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_feature_image.php on line 3
- > PHP Notice
Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_author_name.php on line 3
- > PHP Notice
Undefined variable: label in wp-content/plugins/frontend-post-submission/templates/parts/_post_title.php on line 4
- > PHP Notice
Undefined variable: label in wp-content/plugins/frontend-post-submission/templates/parts/_feature_image.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/frontend-post-submission/templates/parts/_post_content.php:13
- > PHP Notice
Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_post_title.php on line 3
- > PHP Notice
Undefined variable: label in wp-content/plugins/frontend-post-submission/templates/parts/_author_name.php on line 4
- > PHP Notice
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== frontend-post-submission ===
)
frontend-post-submission/frontend-post-submission.php 92% from 13 tests
The main PHP file in "Frontend Post Submission" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
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
Success! There were no dangerous files found in this plugin600 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 359 | 59 | 458 |
CSS | 1 | 23 | 8 | 119 |
JavaScript | 2 | 10 | 0 | 23 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 15 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 28.57% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
PNG images were not found in this plugin