78% wp-link-list

Code Review | WP Link List

WordPress plugin WP Link List scored78%from 54 tests.

About plugin

  • Plugin page: wp-link-list
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2017
  • Latest release: Jan 10, 2018
  • Number of updates: 23
  • Update frequency: every 14.7 days
  • Top authors: ejointjp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,068 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.99ms] Passed 4 tests

Analyzing server-side resources used by WP Link List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.90 ▼3.96
Dashboard /wp-admin3.41 ▲0.1048.51 ▼5.46
Posts /wp-admin/edit.php3.52 ▲0.1650.13 ▼0.54
Add New Post /wp-admin/post-new.php6.01 ▲0.1286.40 ▼13.44
Media Library /wp-admin/upload.php3.33 ▲0.1035.51 ▼1.11
All Links /wp-admin/edit.php?post_type=links3.3839.59
WP Link List /wp-admin/options-general.php?page=wpll-setting3.2833.37
Add New /wp-admin/post-new.php?post_type=links3.4146.55

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Link List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.34 ▼0.291.60 ▲0.0841.00 ▼5.15
Dashboard /wp-admin2,233 ▲565.68 ▲0.0888.92 ▲0.5441.66 ▲0.49
Posts /wp-admin/edit.php2,138 ▲382.07 ▲0.0535.27 ▼4.7333.87 ▼4.32
Add New Post /wp-admin/post-new.php1,556 ▲3023.19 ▲0.02630.02 ▼63.3860.81 ▼0.10
Media Library /wp-admin/upload.php1,435 ▲414.29 ▲0.13103.64 ▼9.0443.76 ▼4.40
All Links /wp-admin/edit.php?post_type=links1,0991.9732.2633.06
WP Link List /wp-admin/options-general.php?page=wpll-setting1,0251.7225.2535.12
Add New /wp-admin/post-new.php?post_type=links1,7253.9064.0448.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wpll-setting
    • > Notice in wp-content/plugins/wp-link-list/wp-link-list.php+217
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-link-list/wp-link-list.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

wp-link-list/wp-link-list.php Passed 13 tests

"WP Link List" version 0.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
WP Link List is shortcode base generate link list plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin473 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP28993315
PO File1384399
Sass315354
CSS3003
JavaScript1072

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin