84% quicklink

Code Review | Quicklink for WordPress

WordPress plugin Quicklink for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: quicklink
  • Plugin version: 0.10.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Jan 16, 2019
  • Latest release: Apr 25, 2023
  • Number of updates: 19
  • Update frequency: every 82.2 days
  • Top authors: wpmunich (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /30,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Quicklink for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.22 ▼3.99
Dashboard /wp-admin3.32 ▼0.0242.49 ▼11.35
Posts /wp-admin/edit.php3.37 ▲0.0244.07 ▼3.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.25 ▲6.51
Media Library /wp-admin/upload.php3.25 ▲0.0231.54 ▼3.81

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_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Quicklink for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.45 ▼0.163.02 ▲1.4641.12 ▼1.04
Dashboard /wp-admin2,192 ▲155.56 ▼0.0382.25 ▼2.6939.27 ▲3.14
Posts /wp-admin/edit.php2,097 ▼61.98 ▼0.0532.31 ▼7.7232.37 ▼3.61
Add New Post /wp-admin/post-new.php1,526 ▼022.85 ▲1.67589.07 ▼140.4551.24 ▼11.15
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0293.26 ▼10.5940.91 ▼8.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quicklink/plugin-compatibility/woocommerce.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: preconnect, prefetch, fast, optimization, http2...

quicklink/quicklink.php Passed 13 tests

The main file in "Quicklink for WordPress" v. 0.10.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
⚡️ Faster subsequent page-loads by prefetching in-viewport links during idle time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin188 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23010497
JavaScript2152891

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.41
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin