84% wp-mylinks

Code Review | WP MyLinks

WordPress plugin WP MyLinks scored84%from 54 tests.

About plugin

  • Plugin page: wp-mylinks
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Apr 29, 2023
  • Number of updates: 18
  • Update frequency: every 58.9 days
  • Top authors: walterpinem (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /16,446 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲1.07MB] [CPU: ▼2.50ms] Passed 4 tests

A check of server-side resources used by WP MyLinks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.20 ▲0.7441.21 ▼0.13
Dashboard /wp-admin4.51 ▲1.2153.39 ▼2.11
Posts /wp-admin/edit.php4.53 ▲1.1856.89 ▲6.72
Add New Post /wp-admin/post-new.php7.11 ▲1.2388.66 ▼14.47
Media Library /wp-admin/upload.php4.37 ▲1.1446.44 ▲11.55
Add New /wp-admin/post-new.php?post_type=mylink5.2062.53
Settings /wp-admin/edit.php?post_type=mylink&page=welcome4.3441.39
Collection /wp-admin/edit.php?post_type=mylinks-collection4.4267.58
All MyLinks /wp-admin/edit.php?post_type=mylink4.4242.65

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 389 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP MyLinks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12314.36 ▲0.011.63 ▼0.0437.26 ▼7.93
Dashboard /wp-admin2,293 ▲1165.62 ▼0.04100.14 ▲6.7547.42 ▲6.04
Posts /wp-admin/edit.php2,196 ▲962.20 ▲0.1938.54 ▲3.7532.12 ▼3.26
Add New Post /wp-admin/post-new.php1,599 ▲6423.68 ▲5.50635.50 ▼28.3356.90 ▼18.32
Media Library /wp-admin/upload.php1,495 ▲984.30 ▲0.08103.84 ▲4.4844.85 ▲3.14
Add New /wp-admin/post-new.php?post_type=mylink3,1534.4495.1371.07
Settings /wp-admin/edit.php?post_type=mylink&page=welcome1,6969.89264.37102.12
Collection /wp-admin/edit.php?post_type=mylinks-collection1,1602.1737.5939.12
All MyLinks /wp-admin/edit.php?post_type=mylink1,1762.1835.3634.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/wp-mylinks/includes/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/wp-mylinks/includes/cmb2/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/wp-mylinks/includes/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-mylinks/includes/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-mylinks/includes/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-mylinks/includes/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wp-mylinks/includes/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-mylinks/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mylinks/includes/class-wp-mylinks-post-type.php:78
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/wp-mylinks/includes/cmb2/includes/CMB2.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
10 plugin tags: linkinbio, campsite, link, social, contactinbio...

wp-mylinks/wp-mylinks.php 92% from 13 tests

The main file in "WP MyLinks" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)

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
There were no executable files found in this plugin50,778 lines of code in 225 files:
LanguageFilesBlank linesComment linesLines of code
PO File12114,53618,75032,984
PHP712,3557,2039,761
CSS192551,2015,697
JavaScript113805901,568
Markdown32490768

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity17.58
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes77
▷ Abstract classes911.69%
▷ Concrete classes6888.31%
▷ Final classes00.00%
Methods579
▷ Static methods9316.06%
▷ Public methods48082.90%
▷ Protected methods9015.54%
▷ Private methods91.55%
Functions79
▷ Named functions7898.73%
▷ Anonymous functions11.27%
Constants12
▷ Global constants541.67%
▷ Class constants758.33%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/discord.png1.50KB1.47KB▼ 2.15%
includes/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
admin/images/one-link.png1.63KB1.59KB▼ 2.04%
includes/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%