Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.19ms] Passed 4 tests
Analyzing server-side resources used by Post As Guest
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 49.26 ▲4.14 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.77 ▼2.01 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.01 ▼4.90 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 95.22 ▼5.99 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.99 ▲4.36 |
Post as Guest /wp-admin/admin.php?page=post-as-guest/pag_review.php | 3.26 | 35.22 |
Settings /wp-admin/admin.php?page=post-as-guest/pag_settings.php | 3.28 | 41.37 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
after-post-msg |
widget_recent-comments |
postfield-legend |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
postfield-rows |
Browser metrics Passed 4 tests
Post As Guest: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 14.44 ▼0.09 | 21.23 ▲19.10 | 42.53 ▼3.00 |
Dashboard /wp-admin | 2,211 ▲34 | 5.52 ▼0.08 | 85.67 ▼5.63 | 81.18 ▲38.05 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.98 ▲0.01 | 34.51 ▼6.11 | 35.22 ▼3.82 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.03 ▲0.18 | 758.53 ▲104.43 | 61.18 ▲5.32 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.14 ▼0.08 | 100.16 ▼8.30 | 74.40 ▲31.18 |
Post as Guest /wp-admin/admin.php?page=post-as-guest/pag_review.php | 843 | 1.99 | 24.49 | 26.53 |
Settings /wp-admin/admin.php?page=post-as-guest/pag_settings.php | 1,284 | 5.38 | 157.21 | 46.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- postfield-rows
- after-post-msg
- widget_theysaidso_widget
- postfield-legend
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function pag_get_posts_wait() in wp-content/plugins/post-as-guest/pag_review.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/post-as-guest/post-as-guest.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/post-as-guest/pag_settings.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=post-as-guest/pag_settings.php
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: content, guest, posts, post
post-as-guest/post-as-guest.php Passed 13 tests
The entry point to "Post As Guest" version 0.9.9 is a PHP file that has certain tags in its header comment area
76 characters long description:
Post as Guest - Creates a form (shortcode) to a page to allow guests to post
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected672 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 33 | 54 | 379 |
PO File | 2 | 89 | 91 | 217 |
JavaScript | 2 | 6 | 7 | 76 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pag_32.png | 1.61KB | 1.47KB | ▼ 8.55% |
images/pag.png | 0.79KB | 0.71KB | ▼ 9.20% |