74% advance-guest-post

Code Review | Advance Guest Post

WordPress plugin Advance Guest Post scored74%from 54 tests.

About plugin

  • Plugin page: advance-guest-post
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Mar 4, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: corlax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,607 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.10MB] [CPU: ▼42.28ms] Passed 4 tests

Server-side resources used by Advance Guest Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▼0.5914.36 ▼26.07
Dashboard /wp-admin2.91 ▼0.3917.82 ▼37.47
Posts /wp-admin/edit.php2.91 ▼0.4520.68 ▼30.29
Add New Post /wp-admin/post-new.php2.91 ▼2.9818.91 ▼75.29
Media Library /wp-admin/upload.php2.91 ▼0.3220.21 ▼16.02

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Advance Guest Post
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,042 ▲28114.04 ▼0.3412.00 ▲10.3843.56 ▲1.33
Dashboard /wp-admin2,205 ▲285.90 ▲0.2983.17 ▼4.7069.92 ▲31.77
Posts /wp-admin/edit.php2,125 ▲252.03 ▲0.0239.22 ▲3.9936.29 ▼1.73
Add New Post /wp-admin/post-new.php1,700 ▲16022.42 ▲4.15761.88 ▲121.8757.73 ▲11.06
Media Library /wp-admin/upload.php1,416 ▲194.23 ▲0.0498.71 ▼12.2545.17 ▲2.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/advance-guest-post/advance-guest-post.php+432
    Trying to get property 'ID' of non-object
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advance-guest-post/lib/agp-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function agp_parse_file_errors() in wp-content/plugins/advance-guest-post/lib/error.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/advance-guest-post/lib/ajax-upload.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_lostpassword_url() in wp-content/plugins/advance-guest-post/lib/login.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/advance-guest-post/lib/ajax-upload.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/advance-guest-post/lib/form.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wordpress, front-end, membership, posting

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

The main PHP script in "Advance Guest Post" version 1.9 is automatically included on every request by WordPress
55 characters long description:
Now your user can submit post without backend enjoy :).

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
Everything looks great! No dangerous files found in this plugin1,709 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP74011681,150
CSS4402375
JavaScript55646184

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
42 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/images/arrow-090.png0.54KB0.41KB▼ 23.69%
lib/images/full/btn_exit_hover.png3.82KB0.86KB▼ 77.42%
lib/images/logo-64.png6.08KB1.87KB▼ 69.18%
lib/images/nonfull/navigate_left_arrow_hover.png3.67KB0.73KB▼ 80.03%
lib/images/weather_sun.png0.61KB0.52KB▼ 14.01%