73% simple-guest-post

Code Review | Guest Post Plugin

WordPress plugin Guest Post Plugin scored73%from 54 tests.

About plugin

  • Plugin page: simple-guest-post
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Nov 18, 2016
  • Latest release: Dec 5, 2016
  • Number of updates: 9
  • Update frequency: every 19.1 days
  • Top authors: debabratsharma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,698 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.03MB] [CPU: ▼5.79ms] Passed 4 tests

Server-side resources used by Guest Post Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0439.41 ▼3.67
Dashboard /wp-admin3.33 ▲0.0348.43 ▼3.75
Posts /wp-admin/edit.php3.38 ▲0.0345.75 ▼2.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.21 ▼13.04
Media Library /wp-admin/upload.php3.26 ▲0.0338.50 ▲2.88
All Guest Posts /wp-admin/edit.php?post_type=guestpost3.3037.03
Add New /wp-admin/post-new.php?post_type=guestpost3.2942.53

Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Guest Post Plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11713.36 ▼0.942.19 ▼0.2751.30 ▲5.39
Dashboard /wp-admin2,254 ▲665.85 ▲0.9798.19 ▼13.6536.53 ▼11.75
Posts /wp-admin/edit.php2,137 ▲482.00 ▼0.0037.72 ▲2.3533.79 ▼3.69
Add New Post /wp-admin/post-new.php1,577 ▲4118.20 ▼4.93598.94 ▼76.8555.10 ▲5.72
Media Library /wp-admin/upload.php1,433 ▲484.20 ▼0.0196.80 ▲0.4043.94 ▲1.62
All Guest Posts /wp-admin/edit.php?post_type=guestpost1,0981.9535.1931.57
Add New /wp-admin/post-new.php?post_type=guestpost1,5492.6750.0852.61
Settings /wp-admin/simple-guest-post.php260.440.0814.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% 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 0% 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
Please fix the following items
  • 8× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto1.php
    • > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto7.php
    • > /wp-content/plugins/simple-guest-post/fpdf/tutorial/makefont.php
    • > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto6.php
    • > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto2.php
    • > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto3.php
    • > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto4.php
    • > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto5.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-guest-post/simple-guest-post.php:11
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/simple-guest-post/fpdf/makefont/ttfparser.php on line 382

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/simple-guest-post.php
    • > Network (severe)
    wp-admin/simple-guest-post.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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
8 plugin tags: pdf, guest post, user post, front end post, admin...

simple-guest-post/simple-guest-post.php Passed 13 tests

The main PHP script in "Guest Post Plugin" version 1.1 is automatically included on every request by WordPress
103 characters long description:
Guest Post Plugin allows your visitors to submit posts without registration from anywhere on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected13,697 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
CSS31,199126,863
PHP272773203,583
HTML597203,236
PO File12115

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity57.75
▷ Minimum class complexity1.00
▷ Maximum class complexity338.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods146
▷ Static methods00.00%
▷ Public methods10873.97%
▷ Protected methods3826.03%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
fpdf/tutorial/logo.png2.32KB2.26KB▼ 2.57%