84% wp-guest-post-manager

Code Review | Guest Post Manager

WordPress plugin Guest Post Manager scored84%from 54 tests.

About plugin

  • Plugin page: wp-guest-post-man...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.0.3
  • WordPress version: 6.3.1
  • First release: Dec 24, 2020
  • Latest release: Nov 1, 2022
  • Number of updates: 7
  • Update frequency: every 99.0 days
  • Top authors: guestpostplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

A check of server-side resources used by Guest Post Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1740.61 ▼1.14
Dashboard /wp-admin3.48 ▲0.1346.53 ▼18.50
Posts /wp-admin/edit.php3.59 ▲0.2451.38 ▲1.99
Add New Post /wp-admin/post-new.php6.08 ▲0.1987.35 ▼21.08
Media Library /wp-admin/upload.php3.40 ▲0.1741.82 ▲3.03

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Guest Post Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲4113.17 ▼1.501.68 ▼0.2243.36 ▲2.24
Dashboard /wp-admin2,221 ▲334.86 ▼0.0299.76 ▼9.2643.04 ▲1.10
Posts /wp-admin/edit.php2,133 ▲412.22 ▲0.2437.14 ▼1.2735.59 ▲0.70
Add New Post /wp-admin/post-new.php6,366 ▲4,84725.97 ▲2.76942.76 ▲250.4271.62 ▲11.72
Media Library /wp-admin/upload.php1,400 ▲94.23 ▼0.01111.55 ▲6.6248.18 ▲4.30

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-guest-post-manager/admin/gpmgr-settings.php:240

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: paid content, post premium article, guest post plugin, guest content, premium content

wp-guest-post-manager/guest-post-manager.php 85% from 13 tests

The main PHP script in "Guest Post Manager" version 1.1.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-guest-post-manager.php" instead of "guest-post-manager.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,408 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP567130767
CSS22429640
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.33KB0.14KB▼ 57.60%
images/ui-bg_diagonals-thick_20_666666_40x40.png0.38KB0.15KB▼ 59.11%
images/ui-bg_glass_100_f6f6f6_1x400.png0.32KB0.12KB▼ 62.35%
images/ui-bg_diagonals-thick_18_b81900_40x40.png0.46KB0.15KB▼ 67.02%
images/ui-bg_glass_65_ffffff_1x400.png0.26KB0.09KB▼ 66.79%