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.27MB] [CPU: ▼1.39ms] Passed 4 tests
This is a short check of server-side resources used by Submit Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 40.50 ▼5.00 |
Dashboard /wp-admin | 3.57 ▲0.27 | 52.41 ▲3.47 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 55.12 ▲6.38 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 101.13 ▼6.63 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 39.65 ▲2.59 |
Submit Content /wp-admin/admin.php?page=submitcontent | 3.46 | 34.06 |
Form Settings /wp-admin/admin.php?page=sc-form-settings | 3.46 | 34.42 |
Shortcodes /wp-admin/admin.php?page=sc-shortcodes | 3.46 | 35.66 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_submitcontent |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
submitcontent_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Submit Content: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲120 | 13.38 ▼0.90 | 8.43 ▲6.53 | 40.46 ▼1.87 |
Dashboard /wp-admin | 2,229 ▲52 | 5.58 ▼0.03 | 84.19 ▼3.93 | 41.21 ▼5.70 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.97 ▲0.03 | 39.53 ▲3.08 | 35.98 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.32 ▲0.10 | 672.38 ▼4.02 | 56.53 ▲6.08 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.22 ▼0.01 | 106.10 ▼0.50 | 45.72 ▼0.29 |
Submit Content /wp-admin/admin.php?page=submitcontent | 1,013 | 2.16 | 27.46 | 33.27 |
Form Settings /wp-admin/admin.php?page=sc-form-settings | 1,005 | 2.22 | 25.15 | 27.10 |
Shortcodes /wp-admin/admin.php?page=sc-shortcodes | 831 | 2.06 | 27.98 | 32.39 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 12× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/submit-content/deactivate.php
- > /wp-content/plugins/submit-content/library/shortcode.php
- > /wp-content/plugins/submit-content/uninstall.php
- > /wp-content/plugins/submit-content/admin_assets/enqueue.php
- > /wp-content/plugins/submit-content/submitcontent.php
- > /wp-content/plugins/submit-content/library/utility_functions.php
- > /wp-content/plugins/submit-content/activate.php
- > /wp-content/plugins/submit-content/library/ajax.php
- > /wp-content/plugins/submit-content/public_assets/enqueue.php
- > /wp-content/plugins/submit-content/library/menu/settings.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: frontend post, public post, submit custom post, visitor post, submit post...
submit-content/submitcontent.php 92% from 13 tests
"Submit Content" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("submit-content.php" instead of "submitcontent.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 plugin2,177 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 252 | 276 | 1,525 |
Markdown | 1 | 80 | 0 | 320 |
JavaScript | 2 | 20 | 15 | 272 |
CSS | 2 | 10 | 0 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected