Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼5.66ms] Passed 4 tests
Server-side resources used by TT Guest Post Submit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.19 ▲0.08 |
Dashboard /wp-admin | 3.50 ▲0.16 | 50.35 ▼15.65 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.21 ▲0.79 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 89.04 ▼7.87 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 37.45 ▲1.90 |
TT Guest Post Submit /wp-admin/options-general.php?page=tt-guest-post-submit/tt-guest-post-submit.php | 3.37 | 34.15 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for TT Guest Post Submit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲53 | 14.35 ▲0.38 | 1.72 ▲0.05 | 39.11 ▼1.62 |
Dashboard /wp-admin | 2,198 ▲17 | 5.64 ▼0.05 | 86.30 ▼16.74 | 36.55 ▼5.68 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▲0.06 | 37.01 ▼0.10 | 31.95 ▼7.65 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.11 ▲0.14 | 622.59 ▲30.44 | 74.36 ▲16.16 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▼0.01 | 99.07 ▼3.08 | 45.03 ▲1.03 |
TT Guest Post Submit /wp-admin/options-general.php?page=tt-guest-post-submit/tt-guest-post-submit.php | 1,605 | 2.00 | 23.12 | 38.69 |
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 were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 27 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tt-guest-post-submit/tt-guest-post-submit.php
- > Notice in wp-content/plugins/tt-guest-post-submit/tt-guest-post-submit.php+191
Undefined variable: disabled
- 46 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tt-guest-post-submit/tt-guest-post-submit.php
- > Notice in wp-content/plugins/tt-guest-post-submit/tt-guest-post-submit.php+193
Trying to access array offset on value of type bool
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tt-guest-post-submit/tt-guest-post-submit.php
- > Notice in wp-content/plugins/tt-guest-post-submit/tt-guest-post-submit.php+154
Undefined variable: second_field
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tt-guest-post-submit/tt-guest-post-submit.php
- > Notice in wp-content/plugins/tt-guest-post-submit/tt-guest-post-submit.php+222
Undefined variable: lite
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tt-guest-post-submit/tt-guest-post-submit.php
- > Notice in wp-content/plugins/tt-guest-post-submit/tt-guest-post-submit.php+152
Undefined variable: size
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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tt-guest-post-submit/EasyCaptcha/samplecode.php
- > /wp-content/plugins/tt-guest-post-submit/EasyCaptcha/easycaptcha.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-guest-post-submit/tt-guest-post-submit.php:403
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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 need to be fixed:
- Tags: There are too many tags (20 tag instead of maximum 10)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== tt-guest-post-submit ===
) - Screenshots: Please add images for these screenshots: #2 (TTGPS-LITE-General Settings Options), #3 (TTGPS-LITE-Other Options), #4 (TTGPS-FULL-General Settings Options), #5 (TTGPS-FULL-Other Options)
tt-guest-post-submit/tt-guest-post-submit.php Passed 13 tests
"TT Guest Post Submit" version 4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Enables your visitors to submit posts and images from anywhere on your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,938 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 350 | 350 | 889 |
PHP | 6 | 181 | 182 | 776 |
CSS | 1 | 31 | 5 | 251 |
XML | 1 | 1 | 9 | 22 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.36MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.PNG | 56.17KB | 22.75KB | ▼ 59.49% |
assets/screenshot-3.PNG | 73.84KB | 25.72KB | ▼ 65.16% |
images/tags.png | 0.76KB | 0.72KB | ▼ 5.30% |
assets/screenshot-2.PNG | 50.15KB | 19.89KB | ▼ 60.33% |
images/screenshot-1.png | 20.01KB | 10.76KB | ▼ 46.23% |