84% post-link-shortcodes

Code Review | Post Link Shortcodes

WordPress plugin Post Link Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: post-link-shortcodes
  • Plugin version: 0.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2.4
  • WordPress version: 6.3.1
  • First release: Aug 27, 2013
  • Latest release: Oct 19, 2019
  • Number of updates: 44
  • Update frequency: every 51.1 days
  • Top authors: aaemnnosttv (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /2,759 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.02MB] [CPU: ▼2.10ms] Passed 4 tests

This is a short check of server-side resources used by Post Link Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.48 ▼6.80
Dashboard /wp-admin3.32 ▲0.0248.94 ▲1.68
Posts /wp-admin/edit.php3.37 ▲0.0248.76 ▼2.94
Add New Post /wp-admin/post-new.php5.90 ▲0.02102.55 ▲1.03
Media Library /wp-admin/upload.php3.24 ▲0.0137.16 ▲0.33

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Post Link Shortcodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.101.71 ▲0.1040.54 ▼7.84
Dashboard /wp-admin2,198 ▲215.62 ▼0.2291.64 ▼1.4641.79 ▲0.88
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0335.54 ▼3.9435.99 ▼0.31
Add New Post /wp-admin/post-new.php1,526 ▼923.13 ▲4.93647.01 ▲27.7049.72 ▼16.10
Media Library /wp-admin/upload.php1,397 ▼64.15 ▼0.0397.63 ▼4.7844.84 ▼4.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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
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
Almost there! Just fix the following items
  • 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/post-link-shortcodes/inc/class-plugin.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

post-link-shortcodes/post-link-shortcodes.php Passed 13 tests

The main PHP file in "Post Link Shortcodes" ver. 0.4.1 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
A collection of shortcodes for building links, images, or URLs to a given post/archive of any type.

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 detected485 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3156435485

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity28.00
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods38
▷ Static methods12.63%
▷ Public methods2668.42%
▷ Protected methods1231.58%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin