84% advance-guest-post

Code Review | Advance Guest Post

WordPress plugin Advance Guest Post scored 84% 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: 5.9.2
  • 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,373 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.36MB] [CPU: ▼337.45ms] Passed 4 tests

This is a short check of server-side resources used by Advance Guest Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.09 ▼0.4319.84 ▼36.60
Dashboard /wp-admin3.01 ▼0.4013.88 ▼19.04
Posts /wp-admin/edit.php3.01 ▼0.6315.44 ▼20.05
Add New Post /wp-admin/post-new.php3.01 ▼3.9614.67 ▼1,274.10
Media Library /wp-admin/upload.php3.01 ▼0.2913.63 ▼11.23

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advance Guest Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,078 ▲33516.11 ▲0.4413.22 ▲7.112.89 ▲0.47
Dashboard /wp-admin2,925 ▲646.16 ▼0.06135.81 ▲7.88178.57 ▲17.77
Posts /wp-admin/edit.php2,716 ▲253.13 ▼0.1187.04 ▲22.80146.67 ▲5.71
Add New Post /wp-admin/post-new.php1,629 ▼2618.32 ▼1.99399.05 ▼30.36185.00 ▲33.18
Media Library /wp-admin/upload.php1,724 ▲265.63 ▲0.12122.37 ▼22.04206.79 ▲13.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/advance-guest-post/advance-guest-post.php+432
    Trying to get property 'ID' of non-object

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/advance-guest-post/lib/form.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 get_option() in wp-content/plugins/advance-guest-post/lib/agp-functions.php:4
    • > 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

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: posting, wordpress, front-end, membership

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

This is the main PHP file of "Advance Guest Post" version 1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | There should be no dangerous file extensions present in any WordPress plugin
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

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
42 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/images/full/nav_left_arrow.png3.59KB0.60KB▼ 83.22%
lib/images/nonfull/navigate_left_arrow.png3.71KB0.70KB▼ 81.23%
lib/images/full/share - twitter.png4.52KB1.43KB▼ 68.42%
lib/images/time.png0.79KB0.73KB▼ 7.88%
lib/images/nonfull/expand.png2.82KB0.13KB▼ 95.46%