84% wordpress-post-update-links

Code Review | WordPress Post Update Links

WordPress plugin WordPress Post Update Links scored 84% from 54 tests.

About plugin

  • Plugin page: wordpress-post-up...
  • Plugin version: 0.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.9
  • WordPress version: 6.3.1
  • First release: Dec 3, 2011
  • Latest release: Apr 18, 2014
  • Number of updates: 24
  • Update frequency: every 36.1 days
  • Top authors: campino2k (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,571 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.01MB] [CPU: ▼2.03ms] Passed 4 tests

Analyzing server-side resources used by WordPress Post Update Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.25 ▲3.09
Dashboard /wp-admin3.31 ▲0.0145.48 ▼3.30
Posts /wp-admin/edit.php3.36 ▲0.0143.21 ▼2.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.73 ▲0.64
Media Library /wp-admin/upload.php3.24 ▲0.0135.43 ▼2.87

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Post Update Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲1313.64 ▲0.421.72 ▼2.8041.89 ▲3.16
Dashboard /wp-admin2,209 ▲35.90 ▲0.1095.22 ▲0.3039.11 ▼1.01
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0234.48 ▼4.4233.80 ▲2.12
Add New Post /wp-admin/post-new.php1,533 ▲1923.44 ▲5.92679.78 ▼29.5255.02 ▼5.48
Media Library /wp-admin/upload.php1,385 ▼64.16 ▼0.12108.11 ▼8.2047.38 ▼1.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
  • 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/wordpress-post-update-links/wp-post-update-links.php:16

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (What the links look like in TwentyEleven default theme if you don't override the styles)
You can look at the official readme.txt

wordpress-post-update-links/wp-post-update-links.php 92% from 13 tests

The primary PHP file in "WordPress Post Update Links" version 0.4.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wordpress-post-update-links.php" instead of "wp-post-update-links.php")

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
Good job! No executable or dangerous file extensions detected128 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1255479
CSS15030
PO File14519

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.67KB9.01KB▼ 63.47%