100% home-quick-links

Code Review | Quick Links

WordPress plugin Quick Links scored 100% from 54 tests.

About plugin

  • Plugin page: home-quick-links
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Sep 22, 2014
  • Latest release: Mar 30, 2016
  • Number of updates: 38
  • Update frequency: every 41.1 days
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,989 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼137.49ms] Passed 4 tests

Analyzing server-side resources used by Quick Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1635.49 ▲13.15
Dashboard /wp-admin3.11 ▲0.0649.05 ▲3.52
Posts /wp-admin/edit.php3.16 ▲0.0554.09 ▲9.70
Add New Post /wp-admin/post-new.php5.47 ▲0.0492.41 ▼559.61
Media Library /wp-admin/upload.php3.05 ▲0.0528.43 ▼3.55
All Quick Links /wp-admin/edit.php?post_type=home_quick_link3.0934.07
Add New /wp-admin/post-new.php?post_type=home_quick_link3.1447.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Quick Links: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲12215.89 ▲0.567.68 ▼2.3044.71 ▼3.82
Dashboard /wp-admin3,005 ▲746.06 ▲0.13130.49 ▼7.08101.16 ▼10.90
Posts /wp-admin/edit.php2,771 ▲352.69 ▼0.0086.00 ▲18.3697.17 ▲0.30
Add New Post /wp-admin/post-new.php1,695 ▲1218.89 ▲0.13401.28 ▲16.97106.29 ▼4.44
Media Library /wp-admin/upload.php1,842 ▲325.02 ▲0.00156.47 ▲13.90123.88 ▼3.60
All Quick Links /wp-admin/edit.php?post_type=home_quick_link1,4282.6161.0181.55
Add New /wp-admin/post-new.php?post_type=home_quick_link2,4124.53104.2477.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: button

home-quick-links/quick-links.php 92% from 13 tests

This is the main PHP file of "Quick Links" version 1.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("home-quick-links.php" instead of "quick-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin460 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP45561256
CSS12061
Sass18059
Markdown121055
HTML115028
JavaScript1031

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions14
▷ Named functions14100.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
PNG images were not found in this plugin