89% wp-softlinks

Code Review | WP SoftLinks

WordPress plugin WP SoftLinks scored89%from 54 tests.

About plugin

  • Plugin page: wp-softlinks
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6 (has_shortcode requires 3.6)-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2014
  • Latest release: Jun 13, 2014
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: swiftweb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /846 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.31MB] [CPU: ▼15.30ms] Passed 4 tests

Analyzing server-side resources used by WP SoftLinks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.12 ▼5.36
Dashboard /wp-admin3.32 ▼0.0251.26 ▼7.35
Posts /wp-admin/edit.php3.38 ▲0.0244.81 ▼1.38
Add New Post /wp-admin/post-new.php4.62 ▼1.2758.71 ▼45.78
Media Library /wp-admin/upload.php3.25 ▲0.0232.31 ▼2.72

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP SoftLinks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.22 ▼1.181.79 ▼0.0140.51 ▼4.85
Dashboard /wp-admin2,222 ▲455.88 ▲0.2882.45 ▼8.1437.41 ▼1.87
Posts /wp-admin/edit.php2,114 ▲141.99 ▼0.0034.83 ▼5.5533.52 ▼1.48
Add New Post /wp-admin/post-new.php1,541 ▲523.47 ▲5.37679.81 ▲0.2136.23 ▼36.29
Media Library /wp-admin/upload.php1,407 ▲104.22 ▲0.02103.22 ▲2.0246.43 ▲3.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: post link replacement, softlink, data-wp-id, tinymce

wp-softlinks/wp-softlinks.php 85% from 13 tests

"WP SoftLinks" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "3.6 (has_shortcode requires 3.6)")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 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 detected593 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript212476450
PHP26686129
CSS14114

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin