89% link-with-note

Code Review | Link With Note

WordPress plugin Link With Note scored89%from 54 tests.

About plugin

  • Plugin page: link-with-note
  • Plugin version: 1.0.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Aug 17, 2021
  • Latest release: Aug 18, 2021
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: smile321 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.93ms] Passed 4 tests

A check of server-side resources used by Link With Note
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.43 ▼0.71
Dashboard /wp-admin3.32 ▲0.0248.03 ▼2.16
Posts /wp-admin/edit.php3.37 ▲0.0247.85 ▼0.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.21 ▼28.33
Media Library /wp-admin/upload.php3.24 ▲0.0237.95 ▲3.81

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: 1 new table, 18 new options
New tables
wp_lwn_note_db
New WordPress options
lwn_comment_view
lwn_db_ver
widget_theysaidso_widget
widget_recent-posts
lwn_title_count
widget_recent-comments
lwn_thumb_view
lwn_new_tab
db_upgraded
lwn_design
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Link With Note
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▲0.071.74 ▲0.1340.56 ▼1.30
Dashboard /wp-admin2,212 ▲325.63 ▼0.0286.06 ▼6.0341.49 ▼1.70
Posts /wp-admin/edit.php2,114 ▲142.03 ▲0.0836.74 ▲0.4331.91 ▼1.79
Add New Post /wp-admin/post-new.php1,538 ▲1222.98 ▼0.20652.63 ▲46.6253.98 ▲5.41
Media Library /wp-admin/upload.php1,417 ▲204.20 ▼0.0199.95 ▲3.0743.57 ▼0.42

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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)
Everything seems fine, however this is by no means 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
3 plugin tags: link, note, customize

link-with-note/lwn-main.php 85% from 13 tests

The main PHP file in "Link With Note" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("link-with-note.php" instead of "lwn-main.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin944 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP23663560
CSS465384

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.79MB with 0.59MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
template/lwn-blog-card/lwn-blog-card.png306.24KB73.47KB▼ 76.01%
template/lwn-img-right/lwn-img-right.png250.24KB64.40KB▼ 74.27%
template/lwn-img-left/lwn-img-left.png250.00KB64.44KB▼ 74.22%