79% post-as-guest

Code Review | Post As Guest

WordPress plugin Post As Guest scored79%from 54 tests.

About plugin

  • Plugin page: post-as-guest
  • Plugin version: 0.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Jan 15, 2013
  • Latest release: Mar 26, 2017
  • Number of updates: 24
  • Update frequency: every 63.8 days
  • Top authors: PowieT (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /6,053 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0649.26 ▲4.14
Dashboard /wp-admin3.37 ▲0.0751.77 ▼2.01
Posts /wp-admin/edit.php3.42 ▲0.0651.01 ▼4.90
Add New Post /wp-admin/post-new.php5.95 ▲0.0695.22 ▼5.99
Media Library /wp-admin/upload.php3.29 ▲0.0638.99 ▲4.36
Post as Guest /wp-admin/admin.php?page=post-as-guest/pag_review.php3.2635.22
Settings /wp-admin/admin.php?page=post-as-guest/pag_settings.php3.2841.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17114.44 ▼0.0921.23 ▲19.1042.53 ▼3.00
Dashboard /wp-admin2,211 ▲345.52 ▼0.0885.67 ▼5.6381.18 ▲38.05
Posts /wp-admin/edit.php2,128 ▲281.98 ▲0.0134.51 ▼6.1135.22 ▼3.82
Add New Post /wp-admin/post-new.php1,552 ▲2423.03 ▲0.18758.53 ▲104.4361.18 ▲5.32
Media Library /wp-admin/upload.php1,428 ▲284.14 ▼0.08100.16 ▼8.3074.40 ▲31.18
Post as Guest /wp-admin/admin.php?page=post-as-guest/pag_review.php8431.9924.4926.53
Settings /wp-admin/admin.php?page=post-as-guest/pag_settings.php1,2845.38157.2146.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP33354379
PO File28991217
JavaScript26776

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 code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/pag_32.png1.61KB1.47KB▼ 8.55%
images/pag.png0.79KB0.71KB▼ 9.20%