84% wp-post-url

Code Review | WordPress Post URL

WordPress plugin WordPress Post URL scored 84% from 54 tests.

About plugin

  • Plugin page: wp-post-url
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.5
  • WordPress version: 6.3.1
  • First release: Jul 9, 2014
  • Latest release: Jul 9, 2014
  • Number of updates: 3
  • Update frequency: every 355.7 days
  • Top authors: nitinmaurya12 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 2,384 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.67ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Post URL
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.90 ▼18.30
Dashboard /wp-admin3.32 ▲0.0248.41 ▼3.12
Posts /wp-admin/edit.php3.37 ▲0.0144.52 ▼1.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.76 ▼11.55
Media Library /wp-admin/upload.php3.24 ▲0.0139.37 ▲5.19

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Post URL
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲6913.24 ▼1.131.79 ▼0.2642.18 ▲2.37
Dashboard /wp-admin2,221 ▲305.86 ▲0.99100.01 ▼7.2571.08 ▲25.72
Posts /wp-admin/edit.php2,107 ▲392.02 ▲0.0335.16 ▼1.2931.94 ▼1.78
Add New Post /wp-admin/post-new.php1,681 ▲16722.07 ▲4.51689.06 ▲58.0850.01 ▼1.29
Media Library /wp-admin/upload.php1,403 ▲184.17 ▼0.0299.45 ▼6.5079.97 ▲19.82

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-post-url/form.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-post-url/wp-post-url.php:11

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 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (WordPress Post URL) image missing
Please take inspiration from this readme.txt

wp-post-url/wp-post-url.php 92% from 13 tests

The principal PHP file in "WordPress Post URL" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected76 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27976

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.49KB4.73KB▼ 67.33%
link.png3.05KB0.67KB▼ 78.22%