68% power-links

Code Review | Power Links - Internal Link Manager

WordPress plugin Power Links - Internal Link Manager scored68%from 54 tests.

About plugin

  • Plugin page: power-links
  • Plugin version: 2.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Aug 20, 2019
  • Latest release: Oct 2, 2019
  • Number of updates: 11
  • Update frequency: every 4.0 days
  • Top authors: ravimareedu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /795 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼1.08MB] [CPU: ▼41.98ms] Passed 4 tests

An overview of server-side resources used by Power Links - Internal Link Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▼0.5722.02 ▼16.88
Dashboard /wp-admin2.94 ▼0.3718.13 ▼31.72
Posts /wp-admin/edit.php2.94 ▼0.4218.24 ▼32.02
Add New Post /wp-admin/post-new.php2.94 ▼2.9518.19 ▼85.65
Media Library /wp-admin/upload.php2.94 ▼0.2918.16 ▼18.51
Settings /wp-admin/edit.php?post_type=keyword_replace&page=wwkr_settings2.9417.31
Reporting /wp-admin/edit.php?post_type=keyword_replace&page=wwkr_reporting2.9420.01
Add New /wp-admin/post-new.php?post_type=keyword_replace2.9417.07
All Power Links /wp-admin/edit.php?post_type=keyword_replace2.9418.59

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Power Links - Internal Link Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,434 ▲69916.78 ▲2.1914.82 ▲13.0740.42 ▼9.15
Dashboard /wp-admin2,386 ▲1986.52 ▲1.65126.38 ▲24.7043.72 ▲1.78
Posts /wp-admin/edit.php2,295 ▲2063.36 ▲1.3547.89 ▲7.2129.98 ▼6.56
Add New Post /wp-admin/post-new.php1,563 ▲4923.04 ▲5.44597.43 ▼0.0733.39 ▼14.59
Media Library /wp-admin/upload.php1,508 ▲1174.18 ▲0.0376.91 ▼21.6342.53 ▼2.70
Settings /wp-admin/edit.php?post_type=keyword_replace&page=wwkr_settings1,1043.0135.9745.12
Reporting /wp-admin/edit.php?post_type=keyword_replace&page=wwkr_reporting1,0143.0845.2129.18
Add New /wp-admin/post-new.php?post_type=keyword_replace1,8273.9763.8133.88
All Power Links /wp-admin/edit.php?post_type=keyword_replace1,3263.3442.7925.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/power-links/modules/settings.php+297
    Undefined variable: locale_taro
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=keyword_replace
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/power-links/modules/settings.php+331
    Undefined variable: locale_taro
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=keyword_replace
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/power-links/modules/settings.php+13
    Undefined index: save_settings_field
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+56
    Undefined index: id
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+56
    Undefined index: class
    • > GET request to /wp-admin/edit.php?post_type=keyword_replace&page=wwkr_settings
    • > Notice in wp-content/plugins/power-links/modules/settings.php+144
    Undefined index: placeholder
    • > GET request to /wp-admin/edit.php?post_type=keyword_replace&page=wwkr_settings
    • > Notice in wp-content/plugins/power-links/modules/settings.php+144
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=keyword_replace&page=wwkr_reporting
    • > Notice in wp-content/plugins/power-links/modules/settings.php+106
    Undefined variable: out
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+217
    Undefined index: post_type
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+233
    Undefined index: link_text
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+233
    Undefined index: link
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+233
    Undefined index: target
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+233
    Undefined index: number_of_links
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+233
    Undefined index: nofollow
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+233
    Undefined index: link_cat
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+233
    Undefined index: title_keyword
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+79
    Undefined index: default
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+62
    Undefined index: subtext
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Notice in wp-content/plugins/power-links/modules/meta_box.php+56
    Undefined index: style
    • > GET request to /wp-admin/post-new.php?post_type=keyword_replace
    • > Warning in wp-content/plugins/power-links/modules/meta_box.php+58
    in_array() expects parameter 2 to be array, string given

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 fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/power-links/modules/scripts.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/power-links/modules/cpt.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/power-links/modules/settings.php:290
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/power-links/modules/meta_box.php:247
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/power-links/modules/scripts.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/power-links/modules/hooks.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: content links, link manager, site links, internal links, inter links...

power-links/power-links.php Passed 13 tests

The entry point to "Power Links - Internal Link Manager" version 2.3 is a PHP file that has certain tags in its header comment area
54 characters long description:
Manages your WordPress site internal liks effectively.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin10,041 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS2107,460
PHP76743462,577
JavaScript2604

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity58.50
▷ Minimum class complexity1.00
▷ Maximum class complexity246.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods109
▷ Static methods10.92%
▷ Public methods9486.24%
▷ Protected methods1513.76%
▷ Private methods00.00%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants22
▷ Global constants22100.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
There were not PNG files found in your plugin