80% link-monitor

Code Review | Link Monitor

WordPress plugin Link Monitor scored80%from 54 tests.

About plugin

  • Plugin page: link-monitor
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2016
  • Latest release: Oct 28, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ddweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,138 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.01ms] Passed 4 tests

An overview of server-side resources used by Link Monitor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1544.18 ▼3.32
Dashboard /wp-admin3.44 ▲0.1449.53 ▼2.83
Posts /wp-admin/edit.php3.56 ▲0.2050.37 ▼2.73
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.80 ▼11.15
Media Library /wp-admin/upload.php3.37 ▲0.1437.13 ▼2.48
Link Monitor /wp-admin/options-general.php?page=my-setting-admin3.3434.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 13 new options
New tables
wp_link_monitor_clicks
New WordPress options
widget_recent-posts
link_monitor_in_custom_posts
link_monitor_get
link_monitor_in_comments
db_upgraded
link_monitor_in_feed
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Checking browser requirements for Link Monitor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.35 ▲0.141.72 ▼0.0340.13 ▼2.37
Dashboard /wp-admin2,203 ▲265.64 ▲0.0491.27 ▼12.4841.55 ▼3.16
Posts /wp-admin/edit.php2,108 ▲52.03 ▲0.0840.76 ▲3.6035.31 ▲3.24
Add New Post /wp-admin/post-new.php6,233 ▲4,70726.11 ▲2.501,073.33 ▲369.8766.74 ▲11.74
Media Library /wp-admin/upload.php1,408 ▲114.27 ▲0.0196.84 ▼9.0540.47 ▼10.09
Link Monitor /wp-admin/options-general.php?page=my-setting-admin8782.0422.8229.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_link_monitor_clicks
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • link_monitor_in_pages
    • widget_recent-comments
    • link_monitor_in_custom_posts
    • can_compress_scripts
    • theysaidso_admin_options
    • link_monitor_in_comments
    • link_monitor_in_posts
    • widget_recent-posts
    • link_monitor_in_excerpt
    • widget_theysaidso_widget
    • ...

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: monitorize links, hide links, hide urls

link-monitor/linkMonitor.php 92% from 13 tests

The entry point to "Link Monitor" version 1.0 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 ("link-monitor.php" instead of "linkMonitor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin598 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP89019446
CSS1250125
JavaScript15027

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.71
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods1332.50%
▷ Public methods3895.00%
▷ Protected methods00.00%
▷ Private methods25.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants1100.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
No PNG files were detected