74% soundst-smart-links

Code Review | Soundst Smart Links

WordPress plugin Soundst Smart Links scored74%from 54 tests.

About plugin

  • Plugin page: soundst-smart-links
  • Plugin version: 0.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2012
  • Latest release: Dec 13, 2012
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: SoundStrategies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /876 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.26MB] [CPU: ▼14.81ms] Passed 4 tests

An overview of server-side resources used by Soundst Smart Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.13 ▼7.86
Dashboard /wp-admin3.38 ▲0.0749.81 ▲0.15
Posts /wp-admin/edit.php3.43 ▲0.0746.18 ▼0.03
Add New Post /wp-admin/post-new.php4.67 ▼1.2239.67 ▼51.48
Media Library /wp-admin/upload.php3.30 ▲0.0734.39 ▲1.02
Soundst Smart Links /wp-admin/options-general.php?page=smart_links_submenu_page3.2735.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: 1 new table, 8 new options
New tables
wp_smartlinks
New WordPress options
widget_recent-posts
theysaidso_admin_options
jal_db_version
smart_links_submenu_page
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Soundst Smart Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲6613.19 ▼1.061.86 ▼0.0243.60 ▼5.07
Dashboard /wp-admin2,210 ▲224.86 ▼1.0199.59 ▼14.0143.17 ▼4.13
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0334.59 ▼17.4434.24 ▼12.60
Add New Post /wp-admin/post-new.php1,548 ▲1518.38 ▼4.83602.03 ▼57.9157.71 ▼0.64
Media Library /wp-admin/upload.php1,392 ▲134.17 ▼0.0393.83 ▼6.3942.59 ▼4.18
Soundst Smart Links /wp-admin/options-general.php?page=smart_links_submenu_page9492.0325.9128.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_smartlinks
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • jal_db_version
    • smart_links_submenu_page
    • can_compress_scripts

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

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/soundst-smart-links/smart_links.php:40

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: "None"
The official readme.txt is a good inspiration

soundst-smart-links/smart_links.php 92% from 13 tests

The entry point to "Soundst Smart Links" version 0.0.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("soundst-smart-links.php" instead of "smart_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
Success! There were no dangerous files found in this plugin427 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17532427

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions8
▷ Named functions8100.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
There are no PNG files in this plugin