10% opt-link-manager

Code Review | Opt Link Manager

WordPress plugin Opt Link Manager scored10%from 54 tests.

About plugin

  • Plugin page: opt-link-manager
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Dec 19, 2015
  • Latest release: Feb 14, 2017
  • Number of updates: 6
  • Update frequency: every 70.2 days
  • Top authors: Nora0123456789 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /637 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/opt-link-manager/opt-link-manager.php+64
    require_once(admin/class/original/class-olm-options-page.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.67ms] Passed 4 tests

Server-side resources used by Opt Link Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.50 ▲0.67
Dashboard /wp-admin3.31 ▲0.0055.44 ▲7.04
Posts /wp-admin/edit.php3.36 ▲0.0048.31 ▼0.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.54 ▼7.22
Media Library /wp-admin/upload.php3.23 ▲0.0034.82 ▲3.89

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Opt Link Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.391.62 ▼0.7442.01 ▼6.07
Dashboard /wp-admin2,206 ▲205.91 ▲1.0098.63 ▼20.1738.28 ▼0.35
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.81 ▼0.2334.68 ▼0.19
Add New Post /wp-admin/post-new.php1,533 ▼123.20 ▲0.08675.32 ▼15.3848.75 ▼13.83
Media Library /wp-admin/upload.php1,382 ▼64.31 ▼0.0196.51 ▼16.9843.00 ▼5.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The SRP test was a success

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)
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === opt-link-manager === )
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

opt-link-manager/opt-link-manager.php 85% from 13 tests

The primary PHP file in "Opt Link Manager" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Description: Please keep the plugin description shorter than 140 characters (currently 264 characters long)

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 plugin2,357 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP55293571,953
JavaScript313667356
CSS10048

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity40.25
▷ Minimum class complexity5.00
▷ Maximum class complexity77.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods53
▷ Static methods00.00%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/button-only@2x.png0.68KB0.51KB▼ 25.25%
js/images/related_links.png8.16KB4.58KB▼ 43.89%
js/images/search_links.png8.16KB4.58KB▼ 43.89%
images/no-img.png7.82KB8.04KB0.00%
images/hatena-btn.png0.72KB0.49KB▼ 31.98%